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
25
pkgs/development/python-modules/discid/default.nix
Normal file
25
pkgs/development/python-modules/discid/default.nix
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
{ lib, stdenv, libdiscid, buildPythonPackage, fetchPypi }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "discid";
|
||||
version = "1.2.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1fc6kvnqwaz9lrs2qgsp8wh0nabf49010r0r53wnsmpmafy315nd";
|
||||
};
|
||||
|
||||
patchPhase =
|
||||
let extension = stdenv.hostPlatform.extensions.sharedLibrary; in
|
||||
''
|
||||
substituteInPlace discid/libdiscid.py \
|
||||
--replace "_open_library(_LIB_NAME)" \
|
||||
"_open_library('${libdiscid}/lib/libdiscid${extension}')"
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python binding of libdiscid";
|
||||
homepage = "https://python-discid.readthedocs.org/";
|
||||
license = licenses.lgpl3Plus;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue