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: fix fpga node and enable it by default

Signed-off-by: Philipp Jungkamp <Philipp.Jungkamp@opal-rt.com>
This commit is contained in:
Philipp Jungkamp 2023-06-19 20:18:27 +02:00
parent c77adf6847
commit 34fadc6bf0
3 changed files with 15 additions and 7 deletions

View file

@ -19,16 +19,17 @@
"fpga": {
"flake": false,
"locked": {
"lastModified": 1679417867,
"narHash": "sha256-HHIsOnuQOq0Ytd22VMSHpTbecHpcheF1xLkslqxXOsk=",
"ref": "refs/heads/master",
"rev": "29f81016b2317667a2b21fbcf74ea66986a84c03",
"revCount": 530,
"lastModified": 1686871446,
"narHash": "sha256-pRFFr72NVge4UgwBvc8gYygnvOHghTSUGI+JtqpRlxo=",
"ref": "refs/heads/villas-node",
"rev": "ce8612379de62f50a52e172fe8eaee924d5d8822",
"revCount": 481,
"submodules": true,
"type": "git",
"url": "https://github.com/VILLASframework/fpga.git"
},
"original": {
"ref": "refs/heads/villas-node",
"submodules": true,
"type": "git",
"url": "https://github.com/VILLASframework/fpga.git"

View file

@ -10,7 +10,10 @@
};
fpga = {
url = "git+https://github.com/VILLASframework/fpga.git?submodules=1";
type = "git";
url = "https://github.com/VILLASframework/fpga.git";
ref = "refs/heads/villas-node";
submodules = true;
flake = false;
};

View file

@ -13,7 +13,7 @@
withHookLua ? withAllHooks,
withNodeAmqp ? withAllNodes,
withNodeComedi ? withAllNodes,
withNodeFpga ? false, # submodule commit has warnings and master broke the interface
withNodeFpga ? withAllNodes,
withNodeIec60870 ? withAllNodes,
withNodeIec61850 ? withAllNodes,
withNodeInfiniband ? withAllNodes,
@ -86,6 +86,10 @@ stdenv.mkDerivation {
${lib.optionalString withNodeFpga "ln -s ${fpga} fpga"}
'';
postInstall = ''
if [ -d $out/include/villas/ ] && [ -d $dev/include/villas/ ]; then
mv $out/include/villas/* $dev/include/villas/
rm -d $out/include/villas
fi
wrapProgram $out/bin/villas \
--set PATH ${lib.makeBinPath [(placeholder "out") gnugrep coreutils]}
wrapProgram $out/bin/villas-api \