Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.3 kB · 66 lines
Nix
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667{ lib, buildPythonPackage, fetchPypi, mercurial, setuptools,}:
buildPythonPackage rec { pname = "hg-evolve"; version = "11.1.8"; pyproject = true;
src = fetchPypi { pname = "hg_evolve"; inherit version; hash = "sha256-JIberZCiRmxPkn0P+Dsps42jHWhkA1hLKGXPlbb+APU="; };
build-system = [ setuptools ];
nativeCheckInputs = [ mercurial ];
checkPhase = '' runHook preCheck
export TESTTMP=$(mktemp -d) export HOME=$TESTTMP cat <<EOF >$HOME/.hgrc [extensions] evolve = topic = EOF
# Shipped tests use the mercurial testing framework, and produce inconsistent results. # Do a quick smoke-test to see if things do what we expect. hg init $TESTTMP/repo pushd $TESTTMP/repo touch a hg add a hg commit -m "init a" hg topic something
touch b hg add b hg commit -m "init b"
echo hi > b hg amend
hg obslog popd
runHook postCheck '';
meta = with lib; { description = "Enables the “changeset evolution” feature of Mercurial core"; homepage = "https://www.mercurial-scm.org/doc/evolution/"; maintainers = with maintainers; [ xavierzwirtz lukegb ]; license = licenses.gpl2Plus; };}