diff options
author | Thomas Tuegel <ttuegel@gmail.com> | 2016-04-18 20:29:19 -0500 |
---|---|---|
committer | Thomas Tuegel <ttuegel@gmail.com> | 2016-04-20 10:01:06 -0500 |
commit | 40ebe0bad3cce545f9f5eb41ca6749b3d7a76e02 (patch) | |
tree | b93926a57f98980ace4108e717ca7c978daf7a8e /pkgs/development/libraries/polkit-qt-1 | |
parent | fc45aaafa659763178d29639fa0ca18337d5f8f3 (diff) | |
download | nixpkgs-40ebe0bad3cce545f9f5eb41ca6749b3d7a76e02.tar nixpkgs-40ebe0bad3cce545f9f5eb41ca6749b3d7a76e02.tar.gz nixpkgs-40ebe0bad3cce545f9f5eb41ca6749b3d7a76e02.tar.bz2 nixpkgs-40ebe0bad3cce545f9f5eb41ca6749b3d7a76e02.tar.lz nixpkgs-40ebe0bad3cce545f9f5eb41ca6749b3d7a76e02.tar.xz nixpkgs-40ebe0bad3cce545f9f5eb41ca6749b3d7a76e02.tar.zst nixpkgs-40ebe0bad3cce545f9f5eb41ca6749b3d7a76e02.zip |
qt55.polkit-qt: use multiple outputs
Diffstat (limited to 'pkgs/development/libraries/polkit-qt-1')
-rw-r--r-- | pkgs/development/libraries/polkit-qt-1/default.nix | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/pkgs/development/libraries/polkit-qt-1/default.nix b/pkgs/development/libraries/polkit-qt-1/default.nix index 3715158705c..dc28d1398bc 100644 --- a/pkgs/development/libraries/polkit-qt-1/default.nix +++ b/pkgs/development/libraries/polkit-qt-1/default.nix @@ -9,6 +9,8 @@ assert (withQt5 -> qtbase != null); assert (!withQt5 -> qt4 != null); stdenv.mkDerivation { name = "polkit-qt-1-0.112.0"; + outputs = [ "dev" "out" ]; + src = fetchurl { url = "mirror://kde/stable/apps/KDE4.x/admin/polkit-qt-1-0.112.0.tar.bz2"; sha256 = "1ip78x20hjqvm08kxhp6gb8hf6k5n6sxyx6kk2yvvq53djzh7yv7"; @@ -18,6 +20,16 @@ stdenv.mkDerivation { propagatedBuildInputs = [ polkit glib ] ++ [(if withQt5 then qtbase else qt4)]; + preConfigure = '' + cmakeFlags+=" -DCMAKE_INSTALL_LIBDIR=''${!outputLib}/lib" + ''; + + 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.*$,set_and_check(POLKITQT-1_LIB_DIR \"''${!outputLib}/lib\")," + ''; + meta = { description = "A Qt wrapper around PolKit"; maintainers = with stdenv.lib.maintainers; [ ttuegel ]; |