summary refs log blame commit diff
path: root/pkgs/build-support/fetchsvn/default.nix
blob: d1435dc4fb69d48aae0b04853ff0b6ba4402054f (plain) (tree)
1
2
3
4
5
6
7
8
9

                                                               


                      
                         
                                 

                             
                                                
 
                                                            
                               
                                                    
  
                                     
 
{stdenv, subversion, nix, sshSupport ? false, openssh ? null}: 
{url, rev ? "HEAD", md5 ? "", sha256 ? ""}:

stdenv.mkDerivation {
  name = "svn-export";
  builder = ./builder.sh;
  buildInputs = [subversion nix];

  # Nix <= 0.7 compatibility.
  /*id = if sha256 == "" then md5 else sha256;*/

  outputHashAlgo = if sha256 == "" then "md5" else "sha256";
  outputHashMode = "recursive";
  outputHash = if sha256 == "" then md5 else sha256;
  
  inherit url rev sshSupport openssh;
}