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
|
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
|
# Fossil, bless its adorable little heart, wants to write global configuration
|
||||||
# to $HOME/.fossil. AFAICT, there is no way to disable this functionality.
|
# to $HOME/.fossil. AFAICT, there is no way to disable this functionality.
|
||||||
@ -13,7 +13,7 @@ mkdir fossil-clone
|
|||||||
WORKDIR=$(pwd)
|
WORKDIR=$(pwd)
|
||||||
mkdir $out
|
mkdir $out
|
||||||
pushd $out
|
pushd $out
|
||||||
fossil open "$WORKDIR/fossil-clone.fossil"
|
fossil open "$WORKDIR/fossil-clone.fossil" "$rev"
|
||||||
popd
|
popd
|
||||||
|
|
||||||
# Just nuke the checkout file.
|
# Just nuke the checkout file.
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{stdenv, fossil}:
|
{stdenv, fossil}:
|
||||||
|
|
||||||
{name ? null, url, rev ? null, md5 ? null, sha256 ? null}:
|
{name ? null, url, rev, md5 ? null, sha256 ? null}:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
name = "fossil-archive" + (if name != null then "-${name}" else "");
|
name = "fossil-archive" + (if name != null then "-${name}" else "");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user