mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 06:03:40 +00:00
130bf93bb4
PR #30484 (f8741c38cd
) has split libbfd and
libopcodes from binutils and gdb. The original pybfd setup.py is completely
unsuitable to handle that. This commit replaces the original source with a fork
with a patched setup.py.
28 lines
856 B
Nix
28 lines
856 B
Nix
{ lib, fetchFromGitHub, buildPythonPackage, isPyPy, isPy3k, libbfd, libopcodes }:
|
|
|
|
buildPythonPackage rec {
|
|
name = "pybfd-0.1.1";
|
|
|
|
disabled = isPyPy || isPy3k;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "orivej";
|
|
repo = "pybfd";
|
|
rev = "a2c3a7b94a3c9f7a353b863f69a79174c6a41ebe";
|
|
sha256 = "0wrz234dz25hs0ajzcz5w8lzc1yzf64wqa8fj01hhr4yy23vjkcr";
|
|
};
|
|
|
|
LIBBFD_INCLUDE_DIR = "${libbfd.dev}/include";
|
|
LIBBFD_LIBRARY = "${libbfd}/lib/libbfd.so";
|
|
LIBOPCODES_INCLUDE_DIR = "${libopcodes.dev}/include";
|
|
LIBOPCODES_LIBRARY = "${libopcodes}/lib/libopcodes.so";
|
|
|
|
meta = {
|
|
homepage = https://github.com/Groundworkstech/pybfd;
|
|
description = "A Python interface to the GNU Binary File Descriptor (BFD) library";
|
|
license = lib.licenses.gpl2;
|
|
platforms = lib.platforms.linux;
|
|
maintainers = with lib.maintainers; [ orivej ];
|
|
};
|
|
}
|