2016-04-19 14:08:06 +03:00
|
|
|
{ stdenv, fetchurl, cmake, pkgconfig, polkit, glib, qtbase }:
|
2011-07-08 00:47:38 +04:00
|
|
|
|
2015-09-27 17:58:27 +03:00
|
|
|
with stdenv.lib;
|
|
|
|
|
2014-11-18 04:00:17 +03:00
|
|
|
stdenv.mkDerivation {
|
2016-04-19 14:08:06 +03:00
|
|
|
name = "polkit-qt-1-qt5-0.112.0";
|
2011-07-08 00:47:38 +04:00
|
|
|
|
2016-04-19 04:29:19 +03:00
|
|
|
outputs = [ "dev" "out" ];
|
|
|
|
|
2011-07-08 00:47:38 +04:00
|
|
|
src = fetchurl {
|
2014-11-18 04:00:17 +03:00
|
|
|
url = "mirror://kde/stable/apps/KDE4.x/admin/polkit-qt-1-0.112.0.tar.bz2";
|
|
|
|
sha256 = "1ip78x20hjqvm08kxhp6gb8hf6k5n6sxyx6kk2yvvq53djzh7yv7";
|
2011-07-08 00:47:38 +04:00
|
|
|
};
|
|
|
|
|
2016-04-19 14:08:06 +03:00
|
|
|
nativeBuildInputs = [ cmake pkgconfig ];
|
2011-12-16 23:55:48 +04:00
|
|
|
|
2016-04-19 14:08:06 +03:00
|
|
|
propagatedBuildInputs = [ polkit glib qtbase ];
|
2011-07-08 00:47:38 +04:00
|
|
|
|
2016-04-19 04:29:19 +03:00
|
|
|
postFixup = ''
|
|
|
|
# Fix library location in CMake module
|
|
|
|
sed -i "$dev/lib/cmake/PolkitQt5-1/PolkitQt5-1Config.cmake" \
|
2016-04-19 15:48:50 +03:00
|
|
|
-e "s,\\(set_and_check.POLKITQT-1_LIB_DIR\\).*$,\\1 \"''${!outputLib}/lib\"),"
|
2016-04-19 04:29:19 +03:00
|
|
|
'';
|
|
|
|
|
2011-07-08 00:47:38 +04:00
|
|
|
meta = {
|
|
|
|
description = "A Qt wrapper around PolKit";
|
2014-11-18 04:00:17 +03:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ ttuegel ];
|
2011-07-08 00:47:38 +04:00
|
|
|
};
|
|
|
|
}
|