summary refs log tree commit diff
path: root/pkgs/build-support/fetchsvn
diff options
context:
space:
mode:
authorRobert Scott <code@humanleg.org.uk>2017-06-04 13:41:28 +0100
committerRobert Scott <code@humanleg.org.uk>2017-06-04 13:41:28 +0100
commit60dcb9cc01c047126e5702cdb4bf81187cb92000 (patch)
treef83ed6ebdc67cf514ee6b50660ebcfdee5c53f4a /pkgs/build-support/fetchsvn
parent0011f9065a1ad1da4db67bec8d535d91b0a78fba (diff)
downloadnixpkgs-60dcb9cc01c047126e5702cdb4bf81187cb92000.tar
nixpkgs-60dcb9cc01c047126e5702cdb4bf81187cb92000.tar.gz
nixpkgs-60dcb9cc01c047126e5702cdb4bf81187cb92000.tar.bz2
nixpkgs-60dcb9cc01c047126e5702cdb4bf81187cb92000.tar.lz
nixpkgs-60dcb9cc01c047126e5702cdb4bf81187cb92000.tar.xz
nixpkgs-60dcb9cc01c047126e5702cdb4bf81187cb92000.tar.zst
nixpkgs-60dcb9cc01c047126e5702cdb4bf81187cb92000.zip
fetchsvn: set LC_ALL in builder to allow svn to handle unicode filenames
Diffstat (limited to 'pkgs/build-support/fetchsvn')
-rw-r--r--pkgs/build-support/fetchsvn/builder.sh4
-rw-r--r--pkgs/build-support/fetchsvn/default.nix4
2 files changed, 6 insertions, 2 deletions
diff --git a/pkgs/build-support/fetchsvn/builder.sh b/pkgs/build-support/fetchsvn/builder.sh
index 7a8a161712d..8ed30b37fc7 100644
--- a/pkgs/build-support/fetchsvn/builder.sh
+++ b/pkgs/build-support/fetchsvn/builder.sh
@@ -18,6 +18,10 @@ if test -n "$http_proxy"; then
     export HOME="$PWD"
 fi;
 
+if test -z "$LC_ALL"; then
+    export LC_ALL="en_US.UTF-8"
+fi;
+
 # Pipe the "p" character into Subversion to force it to accept the
 # server's certificate.  This is perfectly safe: we don't care
 # whether the server is being spoofed --- only the cryptographic
diff --git a/pkgs/build-support/fetchsvn/default.nix b/pkgs/build-support/fetchsvn/default.nix
index 6ed34ec0276..8a1085affd3 100644
--- a/pkgs/build-support/fetchsvn/default.nix
+++ b/pkgs/build-support/fetchsvn/default.nix
@@ -1,4 +1,4 @@
-{stdenv, subversion, sshSupport ? false, openssh ? null}:
+{stdenv, subversion, glibcLocales, sshSupport ? false, openssh ? null}:
 {url, rev ? "HEAD", md5 ? "", sha256 ? "",
  ignoreExternals ? false, ignoreKeywords ? false, name ? null}:
 
@@ -31,7 +31,7 @@ else
 stdenv.mkDerivation {
   name = name_;
   builder = ./builder.sh;
-  buildInputs = [subversion];
+  buildInputs = [ subversion glibcLocales ];
 
   outputHashAlgo = "sha256";
   outputHashMode = "recursive";