about summary refs log tree commit diff
path: root/pkgs/development/libraries/polkit-qt-1/default.nix
blob: 0fb66ccc7c3d5365a0555460182aaa5cfebbf054 (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
35
36
37
{ stdenv
, lib
, mkDerivation
, fetchurl
, cmake
, pkg-config
, polkit
, glib
, pcre
, libselinux
, libsepol
, util-linux
}:

mkDerivation rec {
  pname = "polkit-qt-1";
  version = "0.114.0";

  src = fetchurl {
    url = "mirror://kde/stable/${pname}/${pname}-${version}.tar.xz";
    sha256 = "sha256-LrDyJEWIgpX/or+8DDaThHoPlzu2sMPkzOAhi+fjkH4=";
  };

  nativeBuildInputs = [ cmake pkg-config ];

  buildInputs = [
    glib
    pcre
    polkit
  ] ++ lib.optionals stdenv.hostPlatform.isLinux [ libselinux libsepol util-linux ];

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