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

43 lines
970 B
Nix
Raw Normal View History

{ mkDerivation, lib, fetchFromGitHub, cmake, ninja, qtbase, pantheon }:
mkDerivation rec {
pname = "adwaita-qt";
version = "1.1.4";
src = fetchFromGitHub {
owner = "FedoraQt";
repo = pname;
rev = version;
sha256 = "19s97wm96g3828dp8m85j3lsn1n6h5h2zqk4652hcqcgq6xb6gv5";
};
nativeBuildInputs = [
cmake
ninja
];
buildInputs = [
qtbase
];
postPatch = ''
# Fix plugin dir
substituteInPlace style/CMakeLists.txt \
--replace "DESTINATION \"\''${QT_PLUGINS_DIR}/styles" "DESTINATION \"$qtPluginPrefix/styles"
'';
passthru = {
updateScript = pantheon.updateScript {
attrPath = pname;
};
};
meta = with lib; {
description = "A style to bend Qt applications to look like they belong into GNOME Shell";
homepage = "https://github.com/FedoraQt/adwaita-qt";
license = licenses.gpl2Plus;
maintainers = with maintainers; [ worldofpeace ];
platforms = platforms.linux;
};
}