From c77d10fd73025c2b74704b1f3d165da7c1de47d2 Mon Sep 17 00:00:00 2001 From: David Wronek Date: Tue, 7 Oct 2025 12:39:42 +0200 Subject: [PATCH] unpackelf: init at 2022.11.09 Signed-off-by: David Wronek --- pkgs/by-name/un/unpackelf/package.nix | 37 +++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 pkgs/by-name/un/unpackelf/package.nix diff --git a/pkgs/by-name/un/unpackelf/package.nix b/pkgs/by-name/un/unpackelf/package.nix new file mode 100644 index 000000000000..7876fb6e10c5 --- /dev/null +++ b/pkgs/by-name/un/unpackelf/package.nix @@ -0,0 +1,37 @@ +{ + lib, + stdenv, + fetchFromGitHub, +}: +stdenv.mkDerivation (finalAttrs: { + pname = "unpackelf"; + version = "2022.11.09"; + + src = fetchFromGitHub { + owner = "osm0sis"; + repo = "unpackelf"; + tag = finalAttrs.version; + hash = "sha256-uAt4qpctQPGyXFLtRqTBiCXahoA+/b5rYZCjIh8N+QU="; + }; + + strictDeps = true; + + # Unstream has an install target, but installs unpackelf as `$out/bin` + # instead of `$out/bin/unpackelf` + installPhase = '' + runHook preInstall + install -Dm555 unpackelf -t $out/bin + runHook postInstall + ''; + + meta = { + homepage = "https://github.com/osm0sis/unpackelf"; + description = "Tool to unpack Sony ELF kernel format image variants"; + # No license specified in the repository + license = lib.licenses.free; + sourceProvenance = with lib.sourceTypes; [ fromSource ]; + maintainers = with lib.maintainers; [ ungeskriptet ]; + teams = [ lib.teams.android ]; + mainProgram = "unpackelf"; + }; +})