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/python-ethtool/default.nix
Normal file
34
pkgs/development/python-modules/python-ethtool/default.nix
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pkg-config
|
||||
, libnl
|
||||
, nettools
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "python-ethtool";
|
||||
version = "0.15";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "fedora-python";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "0arkcfq64a4fl88vjjsx4gd3mhcpa7mpq6sblpkgs4k4m9mccz6i";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace tests/parse_ifconfig.py --replace "Popen('ifconfig'," "Popen('${nettools}/bin/ifconfig',"
|
||||
'';
|
||||
|
||||
buildInputs = [ libnl ];
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
pythonImportsCheck = [ "ethtool" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python bindings for the ethtool kernel interface";
|
||||
homepage = "https://github.com/fedora-python/python-ethtool";
|
||||
license = licenses.gpl2Plus;
|
||||
maintainers = with maintainers; [ elohmeier ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue