From f0269dd8b0c2b8dafaf9d0bc3f076b2af468daed Mon Sep 17 00:00:00 2001 From: Anton Fedotov Date: Sun, 2 Aug 2015 06:35:45 +0300 Subject: [PATCH] go-modules: This patch fixes an error with copying sources during installPhase if src of go module conatins file with spaces --- pkgs/development/go-modules/generic/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/go-modules/generic/default.nix b/pkgs/development/go-modules/generic/default.nix index 72b6ad7fdf94..da7a9b179cc2 100644 --- a/pkgs/development/go-modules/generic/default.nix +++ b/pkgs/development/go-modules/generic/default.nix @@ -138,7 +138,7 @@ go.stdenv.mkDerivation ( while read f; do echo "$f" | grep -q '^./\(src\|pkg/[^/]*\)/${goPackagePath}' || continue mkdir -p "$(dirname "$out/share/go/$f")" - cp $NIX_BUILD_TOP/go/$f $out/share/go/$f + cp "$NIX_BUILD_TOP/go/$f" "$out/share/go/$f" done < <(find . -type f) popd fi