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:
parent
f1dfccd8ef
commit
5eb947ad56
1 changed files with 8 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue