cargo-psp: init at 0.2.8
This commit is contained in:
parent
0ff2300bd2
commit
574ceced4a
41
pkgs/by-name/ca/cargo-psp/package.nix
Normal file
41
pkgs/by-name/ca/cargo-psp/package.nix
Normal file
@ -0,0 +1,41 @@
|
||||
{
|
||||
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
|
||||
];
|
||||
};
|
||||
})
|
Loading…
x
Reference in New Issue
Block a user