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