summaryrefslogtreecommitdiff
path: root/pkgs/by-name/el/elf-info/package.nix
blob: 776a386483f6cdd6e5e92739fa93cf201a30c5b5 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{
  lib,
  rustPlatform,
  fetchFromGitHub,
  nix-update-script,
}:

rustPlatform.buildRustPackage rec {
  pname = "elf-info";
  version = "0.3.0";

  src = fetchFromGitHub {
    owner = "kevin-lesenechal";
    repo = "elf-info";
    rev = "v${version}";
    hash = "sha256-wbFVuoarOoxV9FqmuHJ9eZlG4rRqy1rsnuqbGorC2Rk=";
  };

  useFetchCargoVendor = true;
  cargoHash = "sha256-JSCdMGScpeA5q6++veuQ8li3qVTuB0XdJ1yacsqgBDg=";

  passthru.updateScript = nix-update-script { };

  meta = {
    description = "Inspect and dissect an ELF file with pretty formatting";
    homepage = "https://github.com/kevin-lesenechal/elf-info";
    license = lib.licenses.gpl3Only;
    maintainers = with lib.maintainers; [ viperML ];
    mainProgram = "elf";
  };
}