Files
quantenzitrone 6b61249106 various: switch to finalAttrs pattern
this shouldn't create any rebuilds
2026-01-30 02:36:22 +01:00

49 lines
960 B
Nix

{
bashInteractive,
jq,
makeWrapper,
p7zip,
lib,
stdenv,
fetchzip,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "r2mod_cli";
version = "1.3.3";
src = fetchzip {
url = "https://thunderstore.io/package/download/Foldex/r2mod_cli/${finalAttrs.version}/";
hash = "sha256-J7ybNZa44/H+AjQ7L949I3iClXoDwinl/ITMK/QsTR0=";
extension = "zip";
stripRoot = false;
};
buildInputs = [ bashInteractive ];
nativeBuildInputs = [ makeWrapper ];
makeFlags = [
"DESTDIR="
"PREFIX=$(out)"
];
postInstall = ''
wrapProgram $out/bin/r2mod --prefix PATH : "${
lib.makeBinPath [
jq
p7zip
]
}";
'';
meta = {
description = "Risk of Rain 2 Mod Manager in Bash";
homepage = "https://thunderstore.io/package/Foldex/r2mod_cli";
license = lib.licenses.gpl3Only;
maintainers = [ lib.maintainers.reedrw ];
mainProgram = "r2mod";
platforms = lib.platforms.unix;
};
})