From 9f9670c1426836b186d9d3172f71504ad704d881 Mon Sep 17 00:00:00 2001 From: Fernando Ayats Date: Sun, 25 Feb 2024 10:54:42 +0100 Subject: [PATCH] elf-info: init at 0.3.0 --- pkgs/by-name/el/elf-info/package.nix | 29 ++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 pkgs/by-name/el/elf-info/package.nix diff --git a/pkgs/by-name/el/elf-info/package.nix b/pkgs/by-name/el/elf-info/package.nix new file mode 100644 index 000000000000..ac633286606c --- /dev/null +++ b/pkgs/by-name/el/elf-info/package.nix @@ -0,0 +1,29 @@ +{ 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="; + }; + + cargoHash = "sha256-r4GcJhQn9x5c2hbL+813mS3HbIg8OwNDsMg/fHQoL9Y="; + + 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"; + }; +}