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:
parent
7880bc0c21
commit
2d94071cc4
|
@ -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.
|
||||
|
|
|
@ -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 "");
|
||||
|
|
Loading…
Reference in a new issue