summary refs log tree commit diff
path: root/pkgs/build-support/fetchsvn/default.nix
blob: ff842b0ee243bdc3f5d44fd486c58be3743d3346 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{stdenv, subversion, nix, sshSupport ? false, openssh ? null}: {url, rev ? "HEAD", md5}:

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

  # Nix <= 0.7 compatibility.
  id = md5;

  outputHashAlgo = "md5";
  outputHashMode = "recursive";
  outputHash = md5;
  
  inherit url rev sshSupport openssh;
}