Refactor parsers in crowdsec module to make use of symlinkjoin

Fixes failing build when running nix flake check --no-build because
store paths may not be present.
This commit is contained in:
Louis Roebben
2024-09-27 23:10:15 +02:00
committed by Florian Brandes
parent 0d17910a6b
commit 979ba367b3
2 changed files with 13 additions and 14 deletions

View File

@@ -43,6 +43,8 @@ buildGoModule rec {
vendorHash = "sha256-fl5LkRz69QOq4aPyAhMFxw1FWozLzofDBUGvRptuyZY=";
outputs = [ "out" "patterns" ];
nativeBuildInputs = [installShellFiles];
subPackages = [
@@ -64,9 +66,13 @@ buildGoModule rec {
postBuild = "mv $GOPATH/bin/{crowdsec-cli,cscli}";
postInstall = ''
mkdir -p $patterns
mv ./config/patterns/* $patterns
mkdir -p $out/share/crowdsec
cp -r ./config $out/share/crowdsec/
installShellCompletion --cmd cscli \
--bash <($out/bin/cscli completion bash) \
--fish <($out/bin/cscli completion fish) \