2016-04-19 13:08:06 +02:00
|
|
|
{ stdenv, fetchurl, cmake, pkgconfig, polkit, automoc4, glib, qt4 }:
|
|
|
|
|
|
|
|
with stdenv.lib;
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "polkit-qt-1-qt4-0.112.0";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://kde/stable/apps/KDE4.x/admin/polkit-qt-1-0.112.0.tar.bz2";
|
|
|
|
sha256 = "1ip78x20hjqvm08kxhp6gb8hf6k5n6sxyx6kk2yvvq53djzh7yv7";
|
|
|
|
};
|
|
|
|
|
2016-09-22 16:48:35 +02:00
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
2016-04-19 13:08:06 +02:00
|
|
|
nativeBuildInputs = [ cmake pkgconfig automoc4 ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ polkit glib qt4 ];
|
|
|
|
|
2016-09-22 16:48:35 +02:00
|
|
|
postFixup =
|
|
|
|
''
|
|
|
|
for i in $dev/lib/cmake/*/*.cmake; do
|
|
|
|
echo "fixing $i"
|
|
|
|
substituteInPlace $i \
|
|
|
|
--replace "\''${PACKAGE_PREFIX_DIR}/lib" $out/lib
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
2016-04-19 13:08:06 +02:00
|
|
|
meta = {
|
|
|
|
description = "A Qt wrapper around PolKit";
|
|
|
|
maintainers = with stdenv.lib.maintainers; [ ttuegel ];
|
2016-08-02 19:50:55 +02:00
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
2016-04-19 13:08:06 +02:00
|
|
|
};
|
|
|
|
}
|