mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
packaging-nix: allow disabling GPL code from override
Signed-off-by: Philipp Jungkamp <Philipp.Jungkamp@opal-rt.com>
This commit is contained in:
parent
d603205b4b
commit
7e89f8b86b
1 changed files with 6 additions and 6 deletions
|
@ -2,6 +2,7 @@
|
|||
# general configuration
|
||||
src,
|
||||
version,
|
||||
withGpl ? true,
|
||||
withAllExtras ? false,
|
||||
withAllFormats ? false,
|
||||
withAllHooks ? false,
|
||||
|
@ -69,12 +70,12 @@
|
|||
stdenv.mkDerivation {
|
||||
inherit src version;
|
||||
pname = "villas";
|
||||
cmakeFlags =
|
||||
[
|
||||
"-DDOWNLOAD_GO=OFF"
|
||||
"-DCMAKE_BUILD_TYPE=Release"
|
||||
]
|
||||
cmakeFlags = []
|
||||
++ lib.optionals (!withGpl) ["-DWITHOUT_GPL=ON"]
|
||||
++ lib.optionals withFormatProtobuf ["-DCMAKE_FIND_ROOT_PATH=${protobufcBuildBuild}/bin"];
|
||||
postPatch = ''
|
||||
patchShebangs --host ./tools
|
||||
'';
|
||||
preConfigure = ''
|
||||
rm -df common
|
||||
rm -df fpga
|
||||
|
@ -82,7 +83,6 @@ stdenv.mkDerivation {
|
|||
${lib.optionalString withNodeFpga "ln -s ${fpga} fpga"}
|
||||
'';
|
||||
postInstall = ''
|
||||
patchShebangs --build $out/bin/villas
|
||||
wrapProgram $out/bin/villas \
|
||||
--set PATH ${lib.makeBinPath [(placeholder "out") gnugrep coreutils]}
|
||||
'';
|
||||
|
|
Loading…
Add table
Reference in a new issue