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
34
pkgs/development/python-modules/cocotb-bus/default.nix
Normal file
34
pkgs/development/python-modules/cocotb-bus/default.nix
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "cocotb-bus";
|
||||
version = "0.2.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "a197aa4b0e0ad28469c8877b41b3fb2ec0206da9f491b9276d1578ce6dd8aa8d";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
# remove circular dependency cocotb from setup.py
|
||||
substituteInPlace setup.py --replace '"cocotb>=1.5.0.dev,<2.0"' ""
|
||||
'';
|
||||
|
||||
# tests require cocotb, disable for now to avoid circular dependency
|
||||
doCheck = false;
|
||||
|
||||
# checkPhase = ''
|
||||
# export PATH=$out/bin:$PATH
|
||||
# make test
|
||||
# '';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Pre-packaged testbenching tools and reusable bus interfaces for cocotb";
|
||||
homepage = "https://github.com/cocotb/cocotb-bus";
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ prusnak ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue