qt55.polkit-qt: use multiple outputs
This commit is contained in:
parent
fc45aaafa6
commit
40ebe0bad3
@ -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 ];
|
||||
|
Loading…
Reference in New Issue
Block a user