From 780669daf57856d62e672de050324a75f1a66c81 Mon Sep 17 00:00:00 2001 From: Artturin Date: Thu, 23 Mar 2023 19:34:04 +0200 Subject: treewide: don't hardcode /nix/store (no rebuilds changes) improve experience for other store locations --- pkgs/applications/networking/ids/suricata/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkgs/applications/networking/ids') diff --git a/pkgs/applications/networking/ids/suricata/default.nix b/pkgs/applications/networking/ids/suricata/default.nix index bf7626759b36..e10c87e683cb 100644 --- a/pkgs/applications/networking/ids/suricata/default.nix +++ b/pkgs/applications/networking/ids/suricata/default.nix @@ -121,7 +121,7 @@ stdenv.mkDerivation rec { postConfigure = '' # Avoid unintended clousure growth. - sed -i 's|/nix/store/\(.\{8\}\)[^-]*-|/nix/store/\1...-|g' ./src/build-info.h + sed -i 's|${builtins.storeDir}/\(.\{8\}\)[^-]*-|${builtins.storeDir}/\1...-|g' ./src/build-info.h ''; hardeningDisable = [ "stackprotector" ]; -- cgit v1.2.3