nixpkgs/pkgs/data/themes/adwaita-qt/default.nix

43 lines
985 B
Nix
Raw Normal View History

{ mkDerivation, lib, fetchFromGitHub, nix-update-script, cmake, ninja, qtbase, pantheon }:
2018-09-25 02:14:37 +00:00
mkDerivation rec {
2018-09-25 02:14:37 +00:00
pname = "adwaita-qt";
2020-06-14 08:17:13 +00:00
version = "1.1.4";
2018-09-25 02:14:37 +00:00
src = fetchFromGitHub {
owner = "FedoraQt";
repo = pname;
rev = version;
2020-06-14 08:17:13 +00:00
sha256 = "19s97wm96g3828dp8m85j3lsn1n6h5h2zqk4652hcqcgq6xb6gv5";
2018-09-25 02:14:37 +00:00
};
nativeBuildInputs = [
cmake
ninja
];
buildInputs = [
qtbase
];
postPatch = ''
# Fix plugin dir
substituteInPlace style/CMakeLists.txt \
--replace "DESTINATION \"\''${QT_PLUGINS_DIR}/styles" "DESTINATION \"$qtPluginPrefix/styles"
'';
2019-12-22 23:19:30 +00:00
passthru = {
updateScript = nix-update-script {
2019-12-22 23:19:30 +00:00
attrPath = pname;
};
};
meta = with lib; {
2018-09-25 02:14:37 +00:00
description = "A style to bend Qt applications to look like they belong into GNOME Shell";
homepage = "https://github.com/FedoraQt/adwaita-qt";
2018-09-25 02:14:37 +00:00
license = licenses.gpl2Plus;
maintainers = with maintainers; [ worldofpeace ];
platforms = platforms.linux;
};
}