adwaita-qt: 1.1.4 -> 1.3.0

This commit is contained in:
Daniel Șerbănescu 2021-05-19 12:47:55 +02:00
parent 1dbb8fa2be
commit dce2a7a763

View File

@ -1,14 +1,24 @@
{ mkDerivation, lib, fetchFromGitHub, nix-update-script, cmake, ninja, qtbase, pantheon }:
{ mkDerivation
, stdenv
, lib
, fetchFromGitHub
, nix-update-script
, cmake
, ninja
, qtbase
, qt5
, xorg
}:
mkDerivation rec {
pname = "adwaita-qt";
version = "1.1.4";
version = "1.3.0";
src = fetchFromGitHub {
owner = "FedoraQt";
repo = pname;
rev = version;
sha256 = "19s97wm96g3828dp8m85j3lsn1n6h5h2zqk4652hcqcgq6xb6gv5";
sha256 = "1fkivdiz4al84nhgg1srj33l109j9si63biw3asy339cyyzj28c9";
};
nativeBuildInputs = [
@ -18,11 +28,14 @@ mkDerivation rec {
buildInputs = [
qtbase
qt5.qtx11extras
] ++ lib.optionals stdenv.isLinux [
xorg.libxcb
];
postPatch = ''
# Fix plugin dir
substituteInPlace style/CMakeLists.txt \
substituteInPlace src/style/CMakeLists.txt \
--replace "DESTINATION \"\''${QT_PLUGINS_DIR}/styles" "DESTINATION \"$qtPluginPrefix/styles"
'';
@ -37,6 +50,6 @@ mkDerivation rec {
homepage = "https://github.com/FedoraQt/adwaita-qt";
license = licenses.gpl2Plus;
maintainers = teams.gnome.members ++ (with maintainers; [ ]);
platforms = platforms.linux;
platforms = platforms.all;
};
}