go-modules: This patch fixes an error with copying sources during installPhase if src of go module conatins file with spaces

This commit is contained in:
Anton Fedotov 2015-08-02 06:35:45 +03:00
parent 1dab05033f
commit f0269dd8b0

View file

@ -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