Skip to content

Commit

Permalink
fetchsvn: fixup name guessing after #23851
Browse files Browse the repository at this point in the history
I can't see any unfixed differences due to that PR,
at least in nix-env -qa output for the four Hydra platforms.
  • Loading branch information
vcunat committed Mar 19, 2017
1 parent 705b2d9 commit 3ca0990
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkgs/build-support/fetchsvn/default.nix
Expand Up @@ -8,7 +8,9 @@ let
fst = head;
snd = l: head (tail l);
trd = l: head (tail (tail l));
path_ = reverseList (splitString "/" url);
path_ =
(p: if head p == "" then tail p else p) # ~ drop final slash if any
(reverseList (splitString "/" url));
path = [ (removeSuffix "/" (head path_)) ] ++ (tail path_);
in
# ../repo/trunk -> repo
Expand All @@ -31,7 +33,7 @@ stdenv.mkDerivation {
outputHashAlgo = if sha256 == "" then "md5" else "sha256";
outputHashMode = "recursive";
outputHash = if sha256 == "" then md5 else sha256;

inherit url rev sshSupport openssh ignoreExternals ignoreKeywords;

impureEnvVars = stdenv.lib.fetchers.proxyImpureEnvVars;
Expand Down

0 comments on commit 3ca0990

Please sign in to comment.