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/networking/protocol/default.nix
Normal file
29
pkgs/applications/networking/protocol/default.nix
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
{ lib
|
||||
, python3
|
||||
, fetchFromGitHub
|
||||
}:
|
||||
|
||||
python3.pkgs.buildPythonApplication rec {
|
||||
pname = "protocol";
|
||||
version = "unstable-2019-03-28";
|
||||
format = "setuptools";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "luismartingarcia";
|
||||
repo = "protocol";
|
||||
rev = "4e8326ea6c2d288be5464c3a7d9398df468c0ada";
|
||||
sha256 = "13l10jhf4vghanmhh3pn91b2jdciispxy0qadz4n08blp85qn9cm";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace "scripts=['protocol', 'constants.py', 'specs.py']" "scripts=['protocol'], py_modules=['constants', 'specs']"
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "ASCII Header Generator for Network Protocols";
|
||||
homepage = "https://github.com/luismartingarcia/protocol";
|
||||
license = licenses.gpl3Plus;
|
||||
maintainers = with maintainers; [ teto ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue