* A function to fetch sources from a Subversion repository.
svn path=/nixpkgs/trunk/; revision=544
This commit is contained in:
parent
f16b58e236
commit
003ce6c40d
|
@ -0,0 +1,10 @@
|
|||
#! /bin/sh
|
||||
|
||||
buildinputs="$subversion"
|
||||
. $stdenv/setup
|
||||
|
||||
echo "exporting $url (r$rev) into $out..."
|
||||
|
||||
svn export -r $rev "$url" $out || exit 1
|
||||
|
||||
echo $rev > $out/svn-revision || exit 1
|
|
@ -0,0 +1,9 @@
|
|||
{stdenv, subversion}: {url, rev}: derivation {
|
||||
name = "svn-checkout";
|
||||
system = stdenv.system;
|
||||
builder = ./builder.sh;
|
||||
stdenv = stdenv;
|
||||
subversion = subversion;
|
||||
url = url;
|
||||
rev = rev;
|
||||
}
|
Loading…
Reference in New Issue