Browse Source

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.
nixos-19.03
Corbin 6 years ago
parent
commit
2d94071cc4
  1. 4
      pkgs/build-support/fetchfossil/builder.sh
  2. 2
      pkgs/build-support/fetchfossil/default.nix

4
pkgs/build-support/fetchfossil/builder.sh

@ -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.

2
pkgs/build-support/fetchfossil/default.nix

@ -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…
Cancel
Save