2025-06-20 10:21:35 +02:00

42 lines
1.0 KiB
Nix

{
lib,
fetchCrate,
rustPlatform,
makeBinaryWrapper,
nix-update-script,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "cargo-psp";
version = "0.2.8";
src = fetchCrate {
inherit (finalAttrs) pname version;
hash = "sha256-Jud89nYJq4xZn2HudmSA82hOYwItrrTblhIfeqqIqm8=";
};
cargoHash = "sha256-oL2KbhpqvPhtN7hpAuR6a383pPKlW1XuXkoew0ZvPUo=";
nativeBuildInputs = [
makeBinaryWrapper
];
postInstall = ''
wrapProgram "$out/bin/cargo-psp" \
--prefix PATH : "$out/bin"
'';
passthru.updateScript = nix-update-script { };
meta = {
description = "Cargo build wrapper for creating Sony PSP executables";
homepage = "https://github.com/overdrivenpotato/rust-psp/tree/master/cargo-psp";
changelog = "https://github.com/overdrivenpotato/rust-psp/releases/tag/v${finalAttrs.version}";
license = lib.licenses.mit;
mainProgram = "cargo-psp";
platforms = with lib.platforms; linux ++ darwin;
maintainers = with lib.maintainers; [
griffi-gh
];
};
})