git.iko.soy/typeable/nixpkgs
on master help sign in
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.

commit2d94071cc4ad420a488833c674e9e39d8c153bf2 authorCorbin <cds@corbinsimpson.com> dateFri 19 Aug 2016, 13:55 (10 years ago) parent7880bc0
2 files changed+3−3
pkgs/build-support/fetchfossil/builder.sh+2−2 pkgs/build-support/fetchfossil/default.nix+1−1
pkgs/build-support/fetchfossil/builder.sh+2−2
@@ -1,5 +1,5 @@
11source $stdenv/setup
2−header "Cloning Fossil $url into $out"
2+header "Cloning Fossil $url [$rev] into $out"
33
44# Fossil, bless its adorable little heart, wants to write global configuration
55# to $HOME/.fossil. AFAICT, there is no way to disable this functionality.
@@ -13,7 +13,7 @@ mkdir fossil-clone
1313WORKDIR=$(pwd)
1414mkdir $out
1515pushd $out
16−fossil open "$WORKDIR/fossil-clone.fossil"
16+fossil open "$WORKDIR/fossil-clone.fossil" "$rev"
1717popd
1818
1919# Just nuke the checkout file.
pkgs/build-support/fetchfossil/default.nix+1−1
@@ -1,6 +1,6 @@
11{stdenv, fossil}:
22
3−{name ? null, url, rev ? null, md5 ? null, sha256 ? null}:
3+{name ? null, url, rev, md5 ? null, sha256 ? null}:
44
55stdenv.mkDerivation {
66 name = "fossil-archive" + (if name != null then "-${name}" else "");