Merge pull request #301845 from meanvoid/package/thcrap-steam-proton-wrapper

thcrap-steam-proton-wrapper: init at 0-unstable-2024-04-03

authored by Weijia Wang and committed by GitHub 2ceccc9b 60193de3

+66
+10
maintainers/maintainer-list.nix
··· 1770 githubId = 11037075; 1771 name = "Ashley Hooper"; 1772 }; 1773 ashvith-shetty = { 1774 github = "Ashvith10"; 1775 githubId = 113123021;
··· 1770 githubId = 11037075; 1771 name = "Ashley Hooper"; 1772 }; 1773 + ashuramaruzxc = { 1774 + email = "ashuramaru@tenjin-dk.com"; 1775 + matrix = "@tenjin:mozilla.org"; 1776 + github = "ashuramaruzxc"; 1777 + githubId = 72100551; 1778 + name = "Mariia Holovata"; 1779 + keys = [{ 1780 + fingerprint = "409D 201E 9450 8732 A49E D0FC 6BDA F874 0068 08DF"; 1781 + }]; 1782 + }; 1783 ashvith-shetty = { 1784 github = "Ashvith10"; 1785 githubId = 113123021;
+56
pkgs/by-name/th/thcrap-steam-proton-wrapper/package.nix
···
··· 1 + { 2 + lib 3 + , stdenv 4 + , fetchFromGitHub 5 + , makeWrapper 6 + , bash 7 + , subversion 8 + , gnome 9 + }: 10 + stdenv.mkDerivation { 11 + pname = "thcrap-proton"; 12 + version = "0-unstable-2024-04-03"; 13 + 14 + src = fetchFromGitHub { 15 + owner = "tactikauan"; 16 + repo = "thcrap-steam-proton-wrapper"; 17 + rev = "2b636c3f5f1ce1b9b41f731aa9397aa68d2ce66b"; 18 + sha256 = "sha256-J2O8F75NMdsxSaNVr8zLf+vLEJE6CHqWQIIscuuJZ3o="; 19 + }; 20 + 21 + buildInputs = [ subversion ]; 22 + 23 + nativeBuildInputs = [ makeWrapper ]; 24 + 25 + installPhase = '' 26 + runHook preInstall 27 + 28 + mkdir -p $out/bin 29 + cp thcrap_proton $out/bin/thcrap_proton 30 + 31 + runHook postInstall 32 + ''; 33 + 34 + postFixup = '' 35 + wrapProgram $out/bin/thcrap_proton \ 36 + --prefix PATH : ${ 37 + lib.makeBinPath [ 38 + bash 39 + subversion 40 + gnome.zenity 41 + ] 42 + } 43 + ''; 44 + 45 + meta = { 46 + description = "A wrapper script for launching the official Touhou games on Steam with patches through Proton on GNU/Linux"; 47 + homepage = "https://github.com/tactikauan/thcrap-steam-proton-wrapper"; 48 + license = lib.licenses.unlicense; 49 + maintainers = with lib.maintainers; [ ashuramaruzxc ]; 50 + platforms = [ 51 + "x86_64-linux" 52 + "aarch64-linux" 53 + ]; 54 + mainProgram = "thcrap_proton"; 55 + }; 56 + }