depot/third_party/nixpkgs/pkgs/games/r2mod_cli/default.nix
Default email 0d9fc34957 Project import generated by Copybara.
GitOrigin-RevId: 5ed481943351e9fd354aeb557679624224de38d5
2023-01-20 11:41:00 +01:00

38 lines
830 B
Nix

{ fetchFromGitHub
, bashInteractive
, jq
, makeWrapper
, p7zip
, lib, stdenv
}:
stdenv.mkDerivation rec {
pname = "r2mod_cli";
version = "1.3.3";
src = fetchFromGitHub {
owner = "Foldex";
repo = "r2mod_cli";
rev = "v${version}";
sha256 = "sha256-VtJtAyojFOkMLBfpQ6N+8fDDkcJtVCflWjwsdq8OD0w=";
};
buildInputs = [ bashInteractive ];
nativeBuildInputs = [ makeWrapper ];
makeFlags = [ "DESTDIR=" "PREFIX=$(out)" ];
postInstall = ''
wrapProgram $out/bin/r2mod --prefix PATH : "${lib.makeBinPath [ jq p7zip ]}";
'';
meta = with lib; {
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";
platforms = platforms.unix;
};
}