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
48
pkgs/development/python-modules/ydiff/default.nix
Normal file
48
pkgs/development/python-modules/ydiff/default.nix
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
{ lib, buildPythonPackage, fetchPypi, docutils, pygments
|
||||
, gitMinimal, mercurial, subversion, patchutils, less
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "ydiff";
|
||||
version = "1.2";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "f5430577ecd30974d766ee9b8333e06dc76a947b4aae36d39612a0787865a121";
|
||||
};
|
||||
|
||||
patchPhase = ''
|
||||
substituteInPlace ydiff.py \
|
||||
--replace "['git'" "['${gitMinimal}/bin/git'" \
|
||||
--replace "['hg'" "['${mercurial}/bin/hg'" \
|
||||
--replace "['svn'" "['${subversion}/bin/svn'" \
|
||||
--replace "['filterdiff'" "['${patchutils}/bin/filterdiff'" \
|
||||
--replace "['less'" "['${less}/bin/less'" # doesn't support PAGER from env
|
||||
substituteInPlace tests/test_ydiff.py \
|
||||
--replace /bin/rm rm \
|
||||
--replace /bin/sh sh
|
||||
patchShebangs setup.py
|
||||
patchShebangs tests/*.sh
|
||||
'';
|
||||
|
||||
checkInputs = [ docutils pygments ];
|
||||
|
||||
checkPhase = ''
|
||||
runHook preCheck
|
||||
make doc-check reg # We don't want the linter or coverage check.
|
||||
runHook postCheck
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "View colored, incremental diff in workspace or from stdin with side by side and auto pager support (Was \"cdiff\")";
|
||||
longDescription = ''
|
||||
Term based tool to view colored, incremental diff in a version
|
||||
controlled workspace (supports Git, Mercurial, Perforce and Svn
|
||||
so far) or from stdin, with side by side (similar to diff -y)
|
||||
and auto pager support.
|
||||
'';
|
||||
homepage = "https://github.com/ymattw/ydiff";
|
||||
license = licenses.bsd3;
|
||||
maintainers = (with maintainers; [ leenaars ]) ++ teams.deshaw.members;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue