diff options
Diffstat (limited to 'nixpkgs/pkgs/data/themes/adwaita-qt/default.nix')
-rw-r--r-- | nixpkgs/pkgs/data/themes/adwaita-qt/default.nix | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/data/themes/adwaita-qt/default.nix b/nixpkgs/pkgs/data/themes/adwaita-qt/default.nix new file mode 100644 index 000000000000..7428b5fab2fd --- /dev/null +++ b/nixpkgs/pkgs/data/themes/adwaita-qt/default.nix @@ -0,0 +1,42 @@ +{ mkDerivation, lib, fetchFromGitHub, cmake, ninja, qtbase, pantheon }: + +mkDerivation rec { + pname = "adwaita-qt"; + version = "1.1.1"; + + src = fetchFromGitHub { + owner = "FedoraQt"; + repo = pname; + rev = version; + sha256 = "1z1zl6b1190nffcdyjnwz2xy4s6cvgd98aas9z71l5iddwzy32fm"; + }; + + 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; + }; +} |