1{
2 lib,
3 stdenv,
4 binutils-unwrapped-all-targets,
5}:
6
7stdenv.mkDerivation {
8 pname = "libbfd";
9 inherit (binutils-unwrapped-all-targets) version;
10
11 dontUnpack = true;
12 dontBuild = true;
13 dontInstall = true;
14 propagatedBuildInputs = [
15 binutils-unwrapped-all-targets.dev
16 binutils-unwrapped-all-targets.lib
17 ];
18
19 passthru = {
20 inherit (binutils-unwrapped-all-targets) src dev plugin-api-header;
21 };
22
23 meta = with lib; {
24 description = "Library for manipulating containers of machine code";
25 longDescription = ''
26 BFD is a library which provides a single interface to read and write
27 object files, executables, archive files, and core files in any format.
28 It is associated with GNU Binutils, and elsewhere often distributed with
29 it.
30 '';
31 homepage = "https://www.gnu.org/software/binutils/";
32 license = licenses.gpl3Plus;
33 maintainers = with maintainers; [ ericson2314 ];
34 platforms = platforms.unix;
35 };
36}