blob: d14bdca74aa35eb8727894b5a1e972e498e1bbc0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
{
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;
};
})
|