Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at fix-function-merge 38 lines 828 B view raw
1{ fetchFromGitHub 2, bashInteractive 3, jq 4, makeWrapper 5, p7zip 6, lib, stdenv 7}: 8 9stdenv.mkDerivation rec { 10 pname = "r2mod_cli"; 11 version = "1.3.3"; 12 13 src = fetchFromGitHub { 14 owner = "Foldex"; 15 repo = "r2mod_cli"; 16 rev = "v${version}"; 17 sha256 = "sha256-VtJtAyojFOkMLBfpQ6N+8fDDkcJtVCflWjwsdq8OD0w="; 18 }; 19 20 buildInputs = [ bashInteractive ]; 21 22 nativeBuildInputs = [ makeWrapper ]; 23 24 makeFlags = [ "DESTDIR=" "PREFIX=$(out)" ]; 25 26 postInstall = '' 27 wrapProgram $out/bin/r2mod --prefix PATH : "${lib.makeBinPath [ jq p7zip ]}"; 28 ''; 29 30 meta = with lib; { 31 description = "Risk of Rain 2 Mod Manager in Bash"; 32 homepage = "https://github.com/foldex/r2mod_cli"; 33 license = licenses.gpl3Only; 34 maintainers = [ maintainers.reedrw ]; 35 mainProgram = "r2mod"; 36 platforms = platforms.unix; 37 }; 38}