From ac299f45add87dd7158776f8f8baf4139a30566a Mon Sep 17 00:00:00 2001 From: Justin Bedo Date: Fri, 26 Jul 2019 09:04:43 +1000 Subject: make stripping more liberal Update the regex so that /nix/store* prefix doesn't have to match. To make sure we aren't overly general, we strip only bionix stages (i.e., -bionix suffix has to be present in the hash). --- default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/default.nix b/default.nix index 36dbe44..23e4f9b 100644 --- a/default.nix +++ b/default.nix @@ -83,7 +83,7 @@ let stripCommand = '' function rewrite { - sed -i 's|/nix/store/[^-]*|/nix/store/00000000000000000000000000000000|g' $1 + sed -i 's|[A-Za-z0-9+/]\{32\}-bionix|00000000000000000000000000000000-bionix|g' $1 } function rewriteOutput { if [ -f ''${!1} ] ; then -- cgit v1.2.3