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