fetching a specific revision from a subversion repository
svn path=/nixpkgs/trunk/; revision=287
This commit is contained in:
parent
6c8937cbca
commit
e77dea330c
9
pkgs/fetchsvn/fetchsvn.fix
Normal file
9
pkgs/fetchsvn/fetchsvn.fix
Normal file
@ -0,0 +1,9 @@
|
||||
Function(["name","url","rev"],
|
||||
Package(
|
||||
[ ("name", Var("name"))
|
||||
, ("build", Relative("fetchsvn/fetchsvn.sh"))
|
||||
, ("url", Var("url"))
|
||||
, ("rev", Var("rev"))
|
||||
]
|
||||
)
|
||||
)
|
6
pkgs/fetchsvn/fetchsvn.sh
Executable file
6
pkgs/fetchsvn/fetchsvn.sh
Executable file
@ -0,0 +1,6 @@
|
||||
#! /bin/sh
|
||||
|
||||
echo "exporting svn repository $url (at rev $rev) into $out..."
|
||||
|
||||
svn export -r $rev $url $out || exit 1
|
||||
|
Loading…
Reference in New Issue
Block a user