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
28
pkgs/development/python-modules/monotonic/default.nix
Normal file
28
pkgs/development/python-modules/monotonic/default.nix
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
{ lib, stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "monotonic";
|
||||
version = "1.6";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "3a55207bcfed53ddd5c5bae174524062935efed17792e9de2ad0205ce9ad63f7";
|
||||
};
|
||||
|
||||
__propagatedImpureHostDeps = lib.optional stdenv.isDarwin "/usr/lib/libc.dylib";
|
||||
|
||||
patchPhase = lib.optionalString stdenv.isLinux ''
|
||||
substituteInPlace monotonic.py --replace \
|
||||
"ctypes.util.find_library('c')" "'${stdenv.cc.libc}/lib/libc.so'"
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "An implementation of time.monotonic() for Python 2 & < 3.3";
|
||||
homepage = "https://github.com/atdt/monotonic";
|
||||
license = licenses.asl20;
|
||||
};
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue