2020-11-29 20:05:26 +01:00
|
|
|
{ fetchFromGitHub
|
|
|
|
, 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";
|
|
|
|
version = "1.0.5";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Foldex";
|
|
|
|
repo = "r2mod_cli";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1g64f8ms7yz4rzm6xb93agc08kh9sbwkhvq35dpfhvi6v59j3n5m";
|
|
|
|
};
|
|
|
|
|
2021-02-07 10:17:39 +01:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
2020-11-29 20:05:26 +01:00
|
|
|
|
|
|
|
makeFlags = [ "PREFIX=$(out)" ];
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|