1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

packaging-nix: Use correct binary path for villas-api

Signed-off-by: Philipp Jungkamp <Philipp.Jungkamp@opal-rt.com>
This commit is contained in:
Philipp Jungkamp 2023-06-15 17:22:38 +02:00
parent f1dfccd8ef
commit 5eb947ad56

View file

@ -33,6 +33,7 @@
coreutils,
fpga,
graphviz,
jq,
lib,
makeWrapper,
pkg-config,
@ -70,7 +71,11 @@
stdenv.mkDerivation {
inherit src version;
pname = "villas";
cmakeFlags = []
outputs = ["out" "dev"];
cmakeFlags =
[
"-DDOWNLOAD_GO=OFF"
]
++ lib.optionals (!withGpl) ["-DWITHOUT_GPL=ON"]
++ lib.optionals withFormatProtobuf ["-DCMAKE_FIND_ROOT_PATH=${protobufcBuildBuild}/bin"];
postPatch = ''
@ -85,6 +90,8 @@ stdenv.mkDerivation {
postInstall = ''
wrapProgram $out/bin/villas \
--set PATH ${lib.makeBinPath [(placeholder "out") gnugrep coreutils]}
wrapProgram $out/bin/villas-api \
--set PATH ${lib.makeBinPath [coreutils curl jq]}
'';
nativeBuildInputs = [
cmake