2020-12-25 13:55:36 +00:00
|
|
|
{ fetchFromGitHub
|
2021-04-12 18:23:04 +00:00
|
|
|
, bashInteractive
|
2020-12-25 13:55:36 +00:00
|
|
|
, jq
|
|
|
|
, makeWrapper
|
|
|
|
, p7zip
|
2021-01-15 22:18:51 +00:00
|
|
|
, lib, stdenv
|
2020-12-25 13:55:36 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "r2mod_cli";
|
2021-05-20 23:08:51 +00:00
|
|
|
version = "1.2.0";
|
2020-12-25 13:55:36 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Foldex";
|
|
|
|
repo = "r2mod_cli";
|
|
|
|
rev = "v${version}";
|
2021-05-20 23:08:51 +00:00
|
|
|
sha256 = "sha256-VNqdVDBR6+eNOeUthPXLfz+0VoaNfSj4f04HLvjg6/0=";
|
2020-12-25 13:55:36 +00:00
|
|
|
};
|
|
|
|
|
2021-04-12 18:23:04 +00:00
|
|
|
buildInputs = [ bashInteractive ];
|
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
2020-12-25 13:55:36 +00:00
|
|
|
|
|
|
|
makeFlags = [ "PREFIX=$(out)" ];
|
|
|
|
|
|
|
|
postInstall = ''
|
2021-01-15 22:18:51 +00:00
|
|
|
wrapProgram $out/bin/r2mod --prefix PATH : "${lib.makeBinPath [ jq p7zip ]}";
|
2020-12-25 13:55:36 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-12-25 13:55:36 +00:00
|
|
|
description = "A Risk of Rain 2 Mod Manager in Bash";
|
|
|
|
homepage = "https://github.com/foldex/r2mod_cli";
|
|
|
|
license = licenses.gpl3Only;
|
|
|
|
maintainers = [ maintainers.reedrw ];
|
2021-03-19 17:17:44 +00:00
|
|
|
platforms = platforms.unix;
|
2020-12-25 13:55:36 +00:00
|
|
|
};
|
|
|
|
}
|