Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
49 lines
884 B
Nix
49 lines
884 B
Nix
{
|
|
fetchFromGitHub,
|
|
bashInteractive,
|
|
jq,
|
|
makeWrapper,
|
|
p7zip,
|
|
lib,
|
|
stdenv,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "r2mod_cli";
|
|
version = "1.3.3.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Foldex";
|
|
repo = "r2mod_cli";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-Y9ZffztxfGYiUSphqwhe3rTbnJ/vmGGi1pLml+1tLP8=";
|
|
};
|
|
|
|
buildInputs = [ bashInteractive ];
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
makeFlags = [
|
|
"DESTDIR="
|
|
"PREFIX=$(out)"
|
|
];
|
|
|
|
postInstall = ''
|
|
wrapProgram $out/bin/r2mod --prefix PATH : "${
|
|
lib.makeBinPath [
|
|
jq
|
|
p7zip
|
|
]
|
|
}";
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Risk of Rain 2 Mod Manager in Bash";
|
|
homepage = "https://github.com/foldex/r2mod_cli";
|
|
license = licenses.gpl3Only;
|
|
maintainers = [ maintainers.reedrw ];
|
|
mainProgram = "r2mod";
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|