nixpkgs/pkgs/development/libraries/qgnomeplatform/default.nix

41 lines
1001 B
Nix
Raw Normal View History

2019-11-20 10:48:30 +00:00
{ mkDerivation, lib, fetchFromGitHub, pkgconfig, gtk3, qtbase, qmake, qtx11extras }:
2018-09-24 23:07:51 +00:00
2019-08-04 07:39:20 +00:00
mkDerivation rec {
pname = "qgnomeplatform";
2019-11-20 10:48:30 +00:00
version = "0.6.0";
2018-09-24 23:07:51 +00:00
src = fetchFromGitHub {
owner = "FedoraQt";
repo = "QGnomePlatform";
rev = version;
2019-11-20 10:48:30 +00:00
sha256 = "0fb1mzs6sx76bl7f0z2xhc0jq6y1c55jrw1v3na8577is6g5ji0a";
2018-09-24 23:07:51 +00:00
};
nativeBuildInputs = [
pkgconfig
qmake
];
buildInputs = [
gtk3
qtbase
2019-11-20 10:48:30 +00:00
qtx11extras
2018-09-24 23:07:51 +00:00
];
postPatch = ''
# Fix plugin dir
2019-11-20 10:48:30 +00:00
substituteInPlace decoration/decoration.pro \
--replace "\$\$[QT_INSTALL_PLUGINS]" "$out/$qtPluginPrefix"
substituteInPlace theme/theme.pro \
2018-09-24 23:07:51 +00:00
--replace "\$\$[QT_INSTALL_PLUGINS]" "$out/$qtPluginPrefix"
'';
2019-08-04 07:39:20 +00:00
meta = with lib; {
2018-09-24 23:07:51 +00:00
description = "QPlatformTheme for a better Qt application inclusion in GNOME";
homepage = https://github.com/FedoraQt/QGnomePlatform;
license = licenses.lgpl21Plus;
maintainers = with maintainers; [ worldofpeace ];
platforms = platforms.linux;
};
}