2019-12-23 00:19:30 +01:00
|
|
|
{ mkDerivation, lib, fetchFromGitHub, cmake, ninja, qtbase, pantheon }:
|
2018-09-25 04:14:37 +02:00
|
|
|
|
2019-08-04 09:37:07 +02:00
|
|
|
mkDerivation rec {
|
2018-09-25 04:14:37 +02:00
|
|
|
pname = "adwaita-qt";
|
2019-11-20 11:50:36 +01:00
|
|
|
version = "1.1.1";
|
2018-09-25 04:14:37 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "FedoraQt";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2019-11-20 11:50:36 +01:00
|
|
|
sha256 = "1z1zl6b1190nffcdyjnwz2xy4s6cvgd98aas9z71l5iddwzy32fm";
|
2018-09-25 04:14:37 +02: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-23 00:19:30 +01:00
|
|
|
passthru = {
|
|
|
|
updateScript = pantheon.updateScript {
|
|
|
|
attrPath = pname;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2019-08-04 09:37:07 +02:00
|
|
|
meta = with lib; {
|
2018-09-25 04:14:37 +02:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|