1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 03:30:45 +00:00

* A function to fetch sources from a Subversion repository.

svn path=/nixpkgs/trunk/; revision=544
This commit is contained in:
Eelco Dolstra 2003-11-25 17:38:48 +00:00
parent f16b58e236
commit 003ce6c40d
2 changed files with 19 additions and 0 deletions

View file

@ -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

View file

@ -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;
}