3
0
Fork 0
forked from mirrors/nixpkgs

fetchfossil: Require rev.

Otherwise no bumps are done when upstream changes. Not sure how to ping the
repository and check without just doing the clone.
This commit is contained in:
Corbin 2016-08-19 13:55:10 -07:00
parent 7880bc0c21
commit 2d94071cc4
2 changed files with 3 additions and 3 deletions

View file

@ -1,5 +1,5 @@
source $stdenv/setup
header "Cloning Fossil $url into $out"
header "Cloning Fossil $url [$rev] into $out"
# Fossil, bless its adorable little heart, wants to write global configuration
# to $HOME/.fossil. AFAICT, there is no way to disable this functionality.
@ -13,7 +13,7 @@ mkdir fossil-clone
WORKDIR=$(pwd)
mkdir $out
pushd $out
fossil open "$WORKDIR/fossil-clone.fossil"
fossil open "$WORKDIR/fossil-clone.fossil" "$rev"
popd
# Just nuke the checkout file.

View file

@ -1,6 +1,6 @@
{stdenv, fossil}:
{name ? null, url, rev ? null, md5 ? null, sha256 ? null}:
{name ? null, url, rev, md5 ? null, sha256 ? null}:
stdenv.mkDerivation {
name = "fossil-archive" + (if name != null then "-${name}" else "");