From 5ca5dda954d62f3c28e1db996eac62564bc9958d Mon Sep 17 00:00:00 2001 From: Fabian Schmitthenner Date: Sun, 22 Nov 2015 00:06:49 +0000 Subject: [PATCH] more robust escaping --- corepkgs/reproducable-derivation.nix | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/corepkgs/reproducable-derivation.nix b/corepkgs/reproducable-derivation.nix index 492c952b8013..313a7f345654 100644 --- a/corepkgs/reproducable-derivation.nix +++ b/corepkgs/reproducable-derivation.nix @@ -6,9 +6,7 @@ derivation { args = ["-e" (__toFile "name" '' #!/bin/bash ${coreutils}/mkdir -p $out/nix-support - ${coreutils}/cat << EOF > $out/nix-support/source - ${result} - EOF + ${coreutils}/cp ${__toFile "result" result} $out/nix-support/source '')]; system = builtins.currentSystem; } \ No newline at end of file