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/development/python-modules/bitcoinlib/default.nix
Normal file
29
pkgs/development/python-modules/bitcoinlib/default.nix
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
{ stdenv, lib, buildPythonPackage, isPy3k, fetchFromGitHub, openssl }:
|
||||
|
||||
let ext = if stdenv.isDarwin then "dylib" else "so";
|
||||
in buildPythonPackage rec {
|
||||
pname = "bitcoinlib";
|
||||
version = "0.11.0";
|
||||
|
||||
disabled = !isPy3k;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "petertodd";
|
||||
repo = "python-bitcoinlib";
|
||||
rev = "python-${pname}-v${version}";
|
||||
sha256 = "0pwypd966zzivb37fvg4l6yr7ihplqnr1jwz9zm3biip7x89bdzm";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace bitcoin/core/key.py --replace \
|
||||
"ctypes.util.find_library('ssl') or 'libeay32'" \
|
||||
"'${lib.getLib openssl}/lib/libssl.${ext}'"
|
||||
'';
|
||||
|
||||
meta = {
|
||||
homepage = src.meta.homepage;
|
||||
description = "Easy interface to the Bitcoin data structures and protocol";
|
||||
license = with lib.licenses; [ lgpl3 ];
|
||||
maintainers = with lib.maintainers; [ jb55 ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue