nixpkgs/pkgs/games/r2mod_cli/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
830 B
Nix
Raw Normal View History

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