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
29
pkgs/applications/version-management/bumpver/default.nix
Normal file
29
pkgs/applications/version-management/bumpver/default.nix
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
{ lib, python3, git, mercurial}:
|
||||
|
||||
python3.pkgs.buildPythonApplication rec {
|
||||
pname = "bumpver";
|
||||
version = "2021.1110";
|
||||
|
||||
src = python3.pkgs.fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "b6a0ddb78db7e00ae7ffe895bf8ef97f91e6310dfc1c4721896bdfd044b1cb03";
|
||||
};
|
||||
|
||||
prePatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace "if any(arg.startswith(\"bdist\") for arg in sys.argv):" ""\
|
||||
--replace "import lib3to6" ""\
|
||||
--replace "package_dir = lib3to6.fix(package_dir)" ""
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = with python3.pkgs; [ pathlib2 click toml lexid colorama setuptools ];
|
||||
|
||||
checkInputs = [ python3.pkgs.pytestCheckHook git mercurial];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Bump version numbers in project files";
|
||||
homepage = "https://pypi.org/project/bumpver/";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ kfollesdal ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue