nixpkgs/pkgs/development/tools/misc/binutils/libbfd.nix
Sergei Trofimovich b9a9dfc3d4 binutils: consolidate plugin-api.h support in a single
I got the plugin API support at least once incorrect. Instead of
copying the deifnition let's consolidate it within binutils itself.

While at it forward-ported changes to llvm_{13,14,15}.
The change is a no-op from rebuild perspective.
2023-01-30 22:23:36 +00:00

35 lines
958 B
Nix

{ lib, stdenv
, binutils-unwrapped-all-targets
}:
stdenv.mkDerivation {
pname = "libbfd";
inherit (binutils-unwrapped-all-targets) version;
dontUnpack = true;
dontBuild = true;
dontInstall = true;
propagatedBuildInputs = [
binutils-unwrapped-all-targets.dev
binutils-unwrapped-all-targets.lib
];
passthru = {
inherit (binutils-unwrapped-all-targets) dev hasPluginAPI;
};
meta = with lib; {
description = "A library for manipulating containers of machine code";
longDescription = ''
BFD is a library which provides a single interface to read and write
object files, executables, archive files, and core files in any format.
It is associated with GNU Binutils, and elsewhere often distributed with
it.
'';
homepage = "https://www.gnu.org/software/binutils/";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ ericson2314 ];
platforms = platforms.unix;
};
}