2020-11-29 20:05:26 +01:00
|
|
|
{ fetchFromGitHub
|
2021-04-11 21:17:05 +02:00
|
|
|
, bashInteractive
|
2020-11-29 20:05:26 +01:00
|
|
|
, jq
|
|
|
|
, makeWrapper
|
|
|
|
, p7zip
|
2021-01-11 08:54:33 +01:00
|
|
|
, lib, stdenv
|
2020-11-29 20:05:26 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "r2mod_cli";
|
2023-01-14 06:23:47 +01:00
|
|
|
version = "1.3.3";
|
2020-11-29 20:05:26 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Foldex";
|
|
|
|
repo = "r2mod_cli";
|
|
|
|
rev = "v${version}";
|
2023-01-14 06:23:47 +01:00
|
|
|
sha256 = "sha256-VtJtAyojFOkMLBfpQ6N+8fDDkcJtVCflWjwsdq8OD0w=";
|
2020-11-29 20:05:26 +01:00
|
|
|
};
|
|
|
|
|
2021-04-11 21:17:05 +02:00
|
|
|
buildInputs = [ bashInteractive ];
|
|
|
|
|
2021-02-07 10:17:39 +01:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
2020-11-29 20:05:26 +01:00
|
|
|
|
2023-01-03 19:25:34 +01:00
|
|
|
makeFlags = [ "DESTDIR=" "PREFIX=$(out)" ];
|
2020-11-29 20:05:26 +01:00
|
|
|
|
|
|
|
postInstall = ''
|
2021-01-15 05:31:39 +01:00
|
|
|
wrapProgram $out/bin/r2mod --prefix PATH : "${lib.makeBinPath [ jq p7zip ]}";
|
2020-11-29 20:05:26 +01:00
|
|
|
'';
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-11-29 20:05:26 +01:00
|
|
|
description = "A Risk of Rain 2 Mod Manager in Bash";
|
|
|
|
homepage = "https://github.com/foldex/r2mod_cli";
|
|
|
|
license = licenses.gpl3Only;
|
|
|
|
maintainers = [ maintainers.reedrw ];
|
2022-05-05 02:46:39 +02:00
|
|
|
mainProgram = "r2mod";
|
2021-03-10 11:58:22 +01:00
|
|
|
platforms = platforms.unix;
|
2020-11-29 20:05:26 +01:00
|
|
|
};
|
|
|
|
}
|