mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 06:14:57 +01:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
38 lines
828 B
Nix
38 lines
828 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 = "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;
|
|
};
|
|
}
|