uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
59
pkgs/development/python-modules/hg-evolve/default.nix
Normal file
59
pkgs/development/python-modules/hg-evolve/default.nix
Normal file
|
|
@ -0,0 +1,59 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, mercurial
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "hg-evolve";
|
||||
version = "10.5.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "sha256-JGk9PdCDXiDkP8Arw2pfpU+sEj/sCHwwHHWVwF3Ofzw=";
|
||||
};
|
||||
|
||||
checkInputs = [
|
||||
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;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue