about summary refs log tree commit diff
path: root/corepkgs
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2012-07-02T01·57-0400
committerEelco Dolstra <eelco.dolstra@logicblox.com>2012-07-02T01·57-0400
commit6b1e671ac6cc0376474dd8c1403582ae1db01576 (patch)
treec8025843d675fb66b378becdc8b827e2ccb2f91b /corepkgs
parent440adfbdd1c99fdf7929db66b64ccf4dcd9097e3 (diff)
Fix xz compression
Diffstat (limited to 'corepkgs')
-rw-r--r--corepkgs/nar.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/corepkgs/nar.nix b/corepkgs/nar.nix
index cf8851d509..fc9687af77 100644
--- a/corepkgs/nar.nix
+++ b/corepkgs/nar.nix
@@ -8,10 +8,10 @@ let
 
       if [ $compressionType = "xz" ]; then
         ext=xz
-        compressor=${xz} -9
+        compressor="${xz} -9"
       else
         ext=bz2
-        compressor=${bzip2}
+        compressor="${bzip2}"
       fi
 
       echo "packing ‘$storePath’..."
@@ -19,7 +19,7 @@ let
       dst=$out/tmp.nar.$ext
 
       set -o pipefail
-      nix-store --dump "$storePath" | $compressor -9 > $dst
+      nix-store --dump "$storePath" | $compressor > $dst
 
       hash=$(nix-hash --flat --type $hashAlgo --base32 $dst)
       echo -n $hash > $out/nar-compressed-hash