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