Merge pull request #123629 from dasj19/adwaita-qt-update

adwaita-qt: 1.1.4 -> 1.3.0
This commit is contained in:
Jan Tojnar 2021-05-19 14:39:56 +02:00 committed by GitHub
commit 633b9193d0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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;
};
}