samloader-rs: init at 1.1.0

Signed-off-by: David Wronek <david.wronek@mainlining.org>
This commit is contained in:
David Wronek
2026-03-16 13:30:44 +01:00
parent 19edc32a14
commit 02bbd59d1f
+33
View File
@@ -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";
};
})