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
|
|
@ -0,0 +1,57 @@
|
|||
{ lib
|
||||
, buildPythonApplication
|
||||
, fetchFromGitHub
|
||||
, git
|
||||
, pytest
|
||||
, pyyaml
|
||||
, setuptools
|
||||
, installShellFiles
|
||||
}:
|
||||
|
||||
buildPythonApplication rec {
|
||||
version = "0.11.9";
|
||||
pname = "gita";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
sha256 = "9+zuLAx9lMfltsBqjvsivJ5wPnStPfq11XgGMv/JDpY=";
|
||||
rev = version;
|
||||
repo = "gita";
|
||||
owner = "nosarthur";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
pyyaml
|
||||
setuptools
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ installShellFiles ];
|
||||
|
||||
postUnpack = ''
|
||||
for case in "\n" ""; do
|
||||
substituteInPlace source/tests/test_main.py \
|
||||
--replace "'gita$case'" "'source$case'"
|
||||
done
|
||||
'';
|
||||
|
||||
checkInputs = [
|
||||
git
|
||||
pytest
|
||||
];
|
||||
|
||||
checkPhase = ''
|
||||
git init
|
||||
pytest tests
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
installShellCompletion --bash --name gita ${src}/.gita-completion.bash
|
||||
installShellCompletion --zsh --name gita ${src}/.gita-completion.zsh
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "A command-line tool to manage multiple git repos";
|
||||
homepage = "https://github.com/nosarthur/gita";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ seqizz ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue