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:
parent
f16b58e236
commit
003ce6c40d
10
pkgs/build-support/fetchsvn/builder.sh
Executable file
10
pkgs/build-support/fetchsvn/builder.sh
Executable 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
|
9
pkgs/build-support/fetchsvn/default.nix
Normal file
9
pkgs/build-support/fetchsvn/default.nix
Normal 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;
|
||||
}
|
Loading…
Reference in a new issue