nixpkgs/pkgs/development/libraries/polkit-qt-1/qt-5.nix

33 lines
846 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, cmake, pkg-config, polkit, glib, qtbase }:
with lib;
2015-09-27 15:58:27 +01:00
stdenv.mkDerivation {
name = "polkit-qt-1-qt5-0.112.0";
outputs = [ "out" "dev" ];
2016-04-19 02:29:19 +01:00
src = fetchurl {
url = "mirror://kde/stable/apps/KDE4.x/admin/polkit-qt-1-0.112.0.tar.bz2";
sha256 = "1ip78x20hjqvm08kxhp6gb8hf6k5n6sxyx6kk2yvvq53djzh7yv7";
};
nativeBuildInputs = [ cmake pkg-config ];
propagatedBuildInputs = [ polkit glib qtbase ];
dontWrapQtApps = true;
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" \
-e "s,\\(set_and_check.POLKITQT-1_LIB_DIR\\).*$,\\1 \"''${!outputLib}/lib\"),"
2016-04-19 02:29:19 +01:00
'';
meta = {
description = "A Qt wrapper around PolKit";
maintainers = with lib.maintainers; [ ttuegel ];
platforms = with lib.platforms; linux;
};
}