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:
@@ -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) \
|
||||
|
||||
Reference in New Issue
Block a user