summary refs log tree commit diff
path: root/pkgs/development/libraries/polkit-qt-1/qt-4.nix
blob: b13335561ac0a04ffa550a7627b9f96893bcef65 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{ 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";
  };

  outputs = [ "out" "dev" ];

  nativeBuildInputs = [ cmake pkgconfig automoc4 ];

  propagatedBuildInputs = [ polkit glib qt4 ];

  postFixup =
    ''
      for i in $dev/lib/cmake/*/*.cmake; do
        echo "fixing $i"
        substituteInPlace $i \
          --replace "\''${PACKAGE_PREFIX_DIR}/lib" $out/lib
      done
    '';

  meta = with stdenv.lib; {
    description = "A Qt wrapper around PolKit";
    maintainers = [ maintainers.ttuegel ];
    platforms = platforms.linux;
    license = licenses.lgpl21;
  };
}