From 02bbd59d1fc03c0d66874af99ea87fa88f598ed2 Mon Sep 17 00:00:00 2001 From: David Wronek Date: Mon, 16 Mar 2026 13:21:36 +0100 Subject: [PATCH] samloader-rs: init at 1.1.0 Signed-off-by: David Wronek --- pkgs/by-name/sa/samloader-rs/package.nix | 33 ++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 pkgs/by-name/sa/samloader-rs/package.nix diff --git a/pkgs/by-name/sa/samloader-rs/package.nix b/pkgs/by-name/sa/samloader-rs/package.nix new file mode 100644 index 000000000000..37a1c4d40720 --- /dev/null +++ b/pkgs/by-name/sa/samloader-rs/package.nix @@ -0,0 +1,33 @@ +{ + lib, + rustPlatform, + fetchFromGitHub, + perl, + nix-update-script, +}: +rustPlatform.buildRustPackage (finalAttrs: { + pname = "samloader-rs"; + version = "1.1.0"; + + src = fetchFromGitHub { + owner = "topjohnwu"; + repo = "samloader-rs"; + tag = finalAttrs.version; + hash = "sha256-LgN/vGfb5hdy9/YH4x3+vFUjH97omGu2iNtkDJRMmsk="; + }; + + cargoHash = "sha256-o0+Kb8teYhuhvl8U6FiAq8Z6vd4IWA8k4Z104Z9BkMw="; + + nativeBuildInputs = [ perl ]; + + passthru.updateScript = nix-update-script { }; + + meta = { + description = "Download firmware for Samsung devices"; + homepage = "https://github.com/topjohnwu/samloader-rs"; + changelog = "https://github.com/topjohnwu/samloader-rs/releases/tag/${finalAttrs.version}"; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ ungeskriptet ]; + mainProgram = "samloader"; + }; +})