nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 rustPlatform,
4 fetchFromGitHub,
5}:
6
7rustPlatform.buildRustPackage (finalAttrs: {
8 pname = "elfx86exts";
9 version = "0.6.2";
10
11 src = fetchFromGitHub {
12 owner = "pkgw";
13 repo = "elfx86exts";
14 tag = "elfx86exts@${finalAttrs.version}";
15 hash = "sha256-lqaOnZxuiip1HPDpQraXlpUBYeJuBCRTaNARZVEV5UY=";
16 };
17
18 cargoHash = "sha256-7FVcLvbZQK5M90ofoBpK2V/1+vWlBI/Z2x3ydbCwVbM=";
19
20 meta = with lib; {
21 description = "Decode x86 binaries and print out which instruction set extensions they use";
22 longDescription = ''
23 Disassemble a binary containing x86 instructions and print out which extensions it uses.
24 Despite the utterly misleading name, this tool supports ELF and MachO binaries, and
25 perhaps PE-format ones as well. (It used to be more limited.)
26 '';
27 homepage = "https://github.com/pkgw/elfx86exts";
28 maintainers = with maintainers; [ rmcgibbo ];
29 license = with licenses; [ mit ];
30 mainProgram = "elfx86exts";
31 };
32})