3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/data/themes/adwaita-qt/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

59 lines
1.2 KiB
Nix
Raw Normal View History

2021-05-19 11:47:55 +01:00
{ mkDerivation
, stdenv
, lib
, fetchFromGitHub
, nix-update-script
, cmake
, ninja
, qtbase
, qt5
, xorg
}:
2018-09-25 03:14:37 +01:00
mkDerivation rec {
2018-09-25 03:14:37 +01:00
pname = "adwaita-qt";
2021-11-13 23:11:56 +00:00
version = "1.4.1";
2018-09-25 03:14:37 +01:00
outputs = [ "out" "dev" ];
2018-09-25 03:14:37 +01:00
src = fetchFromGitHub {
owner = "FedoraQt";
repo = pname;
rev = version;
2021-11-13 23:11:56 +00:00
sha256 = "sha256-t9vv1KcMUg8Qe7lhVMN4GO+VPoT7QzeoQ6hV4fesA8U=";
2018-09-25 03:14:37 +01:00
};
nativeBuildInputs = [
cmake
ninja
];
buildInputs = [
qtbase
2021-05-19 11:47:55 +01:00
qt5.qtx11extras
] ++ lib.optionals stdenv.isLinux [
xorg.libxcb
2018-09-25 03:14:37 +01:00
];
postPatch = ''
# Fix plugin dir
2021-05-19 11:47:55 +01:00
substituteInPlace src/style/CMakeLists.txt \
2018-09-25 03:14:37 +01:00
--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 03:14:37 +01: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 03:14:37 +01:00
license = licenses.gpl2Plus;
maintainers = teams.gnome.members ++ (with maintainers; [ ]);
2021-05-19 11:47:55 +01:00
platforms = platforms.all;
broken = stdenv.isDarwin; # broken since 2021-12-05 on hydra, broken until qt515 will be used for darwin
2018-09-25 03:14:37 +01:00
};
}