nixpkgs/pkgs/games/r2mod_cli/default.nix

38 lines
793 B
Nix
Raw Normal View History

2020-11-29 11:05:26 -08:00
{ fetchFromGitHub
, bashInteractive
2020-11-29 11:05:26 -08:00
, jq
, makeWrapper
, p7zip
, lib, stdenv
2020-11-29 11:05:26 -08:00
}:
stdenv.mkDerivation rec {
pname = "r2mod_cli";
2021-04-11 17:24:04 -07:00
version = "1.0.7";
2020-11-29 11:05:26 -08:00
src = fetchFromGitHub {
owner = "Foldex";
repo = "r2mod_cli";
rev = "v${version}";
2021-04-11 17:24:04 -07:00
sha256 = "13n2y9gsgb8hnr64y083x9c90j3b4awcmdn81mqmwcydpby3q848";
2020-11-29 11:05:26 -08:00
};
buildInputs = [ bashInteractive ];
nativeBuildInputs = [ makeWrapper ];
2020-11-29 11:05:26 -08:00
makeFlags = [ "PREFIX=$(out)" ];
postInstall = ''
2021-01-14 20:31:39 -08:00
wrapProgram $out/bin/r2mod --prefix PATH : "${lib.makeBinPath [ jq p7zip ]}";
2020-11-29 11:05:26 -08:00
'';
meta = with lib; {
2020-11-29 11:05:26 -08: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-10 02:58:22 -08:00
platforms = platforms.unix;
2020-11-29 11:05:26 -08:00
};
}