Add `fetchbzr', to retrieve remote Bazaar repositories.

svn path=/nixpkgs/trunk/; revision=12924
This commit is contained in:
Ludovic Courtès 2008-09-26 08:57:51 +00:00
parent 3a9d5063bd
commit 9383cd0a48
3 changed files with 28 additions and 0 deletions

View file

@ -0,0 +1,9 @@
source "$stdenv/setup"
header "exporting \`$url' (revision $revision) into \`$out'"
# Perform a lightweight checkout so that we don't end up importing
# all the repository's history.
bzr checkout --lightweight "$url" -r "$revision" "$out"
stopNest

View file

@ -0,0 +1,15 @@
{ stdenv, bazaar }:
{ url, revision, sha256 }:
stdenv.mkDerivation {
name = "bzr-export";
builder = ./builder.sh;
buildInputs = [ bazaar ];
outputHashAlgo = "sha256";
outputHashMode = "recursive";
outputHash = sha256;
inherit url revision;
}

View file

@ -353,6 +353,10 @@ let
inherit fetchurl stdenv;
};
fetchbzr = import ../build-support/fetchbzr {
inherit stdenv bazaar;
};
fetchcvs = import ../build-support/fetchcvs {
inherit stdenv cvs;
};