Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from
Apr 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 10 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -1758,6 +1758,16 @@
githubId = 11037075;
name = "Ashley Hooper";
};
ashuramaruzxc = {
email = "ashuramaru@tenjin-dk.com";
matrix = "@tenjin:mozilla.org";
github = "ashuramaruzxc";
githubId = 72100551;
name = "Mariia Holovata";
keys = [{
fingerprint = "409D 201E 9450 8732 A49E D0FC 6BDA F874 0068 08DF";
}];
};
ashvith-shetty = {
github = "Ashvith10";
githubId = 113123021;
Expand Down
56 changes: 56 additions & 0 deletions pkgs/by-name/th/thcrap-steam-proton-wrapper/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{
lib
, stdenv
, fetchFromGitHub
, makeWrapper
, bash
, subversion
, gnome
}:
stdenv.mkDerivation {
pname = "thcrap-proton";
version = "0-unstable-2024-04-03";
ashuramaruzxc marked this conversation as resolved.
Show resolved Hide resolved

src = fetchFromGitHub {
owner = "tactikauan";
repo = "thcrap-steam-proton-wrapper";
rev = "2b636c3f5f1ce1b9b41f731aa9397aa68d2ce66b";
sha256 = "sha256-J2O8F75NMdsxSaNVr8zLf+vLEJE6CHqWQIIscuuJZ3o=";
};

buildInputs = [ subversion ];

nativeBuildInputs = [ makeWrapper ];

installPhase = ''
runHook preInstall

mkdir -p $out/bin
cp thcrap_proton $out/bin/thcrap_proton

runHook postInstall
'';

postFixup = ''
wrapProgram $out/bin/thcrap_proton \
--prefix PATH : ${
lib.makeBinPath [
bash
subversion
gnome.zenity
]
}
'';

meta = {
description = "A wrapper script for launching the official Touhou games on Steam with patches through Proton on GNU/Linux";
homepage = "https://github.com/tactikauan/thcrap-steam-proton-wrapper";
license = lib.licenses.unlicense;
maintainers = with lib.maintainers; [ ashuramaruzxc ];
platforms = [
"x86_64-linux"
"aarch64-linux"
];
mainProgram = "thcrap_proton";
};
}