grantlee5: don't link plugins into $dev
This commit is contained in:
parent
55e6c1b8e1
commit
b4780249c6
@ -12,23 +12,18 @@ mkDerivation rec {
|
|||||||
name = "${name}.tar.gz";
|
name = "${name}.tar.gz";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = copyPathsToStore (lib.readPathsFromFile ./. ./series);
|
|
||||||
|
|
||||||
buildInputs = [ qtbase qtscript ];
|
buildInputs = [ qtbase qtscript ];
|
||||||
nativeBuildInputs = [ cmake ];
|
nativeBuildInputs = [ cmake ];
|
||||||
|
|
||||||
outputs = [ "out" "dev" "bin" ];
|
patches = copyPathsToStore (lib.readPathsFromFile ./. ./series);
|
||||||
postInstall = ''
|
|
||||||
moveToOutput "$grantleePluginPrefix" "$bin"
|
|
||||||
|
|
||||||
# CMake checks that the provided libraries and plugins exist
|
outputs = [ "out" "dev" ];
|
||||||
# Link libraries into $dev to satisfy CMake
|
postFixup =
|
||||||
mkdir -p $dev/lib
|
# Disabuse CMake of the notion that libraries are in $dev
|
||||||
find $out/lib -name '*.so.*' -exec ln -s \{\} $dev/lib \;
|
''
|
||||||
|
sed -i $dev/lib/cmake/Grantlee5/GrantleeTargets-release.cmake \
|
||||||
# Link plugins into $dev to satisfy CMake
|
-e "s|\''${_IMPORT_PREFIX}|$out|"
|
||||||
ln -s $bin/lib/grantlee $dev/lib
|
'';
|
||||||
'';
|
|
||||||
|
|
||||||
setupHook = ./setup-hook.sh;
|
setupHook = ./setup-hook.sh;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user