mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 06:33:42 +00:00
b9a9dfc3d4
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.
29 lines
687 B
Nix
29 lines
687 B
Nix
{ lib, stdenv
|
|
, binutils-unwrapped-all-targets
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "libopcodes";
|
|
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 from binutils for manipulating machine code";
|
|
homepage = "https://www.gnu.org/software/binutils/";
|
|
license = licenses.gpl3Plus;
|
|
maintainers = with maintainers; [ ericson2314 ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|