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
|
|
|
|
2019-08-04 08:37:07 +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
|
|
|
|
2021-10-13 17:24:14 +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 = {
|
2020-07-29 17:33:39 +01:00
|
|
|
updateScript = nix-update-script {
|
2019-12-22 23:19:30 +00:00
|
|
|
attrPath = pname;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2019-08-04 08:37:07 +01:00
|
|
|
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";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/FedoraQt/adwaita-qt";
|
2018-09-25 03:14:37 +01:00
|
|
|
license = licenses.gpl2Plus;
|
2021-05-07 14:23:50 +01:00
|
|
|
maintainers = teams.gnome.members ++ (with maintainers; [ ]);
|
2021-05-19 11:47:55 +01:00
|
|
|
platforms = platforms.all;
|
2018-09-25 03:14:37 +01:00
|
|
|
};
|
|
|
|
}
|