-
-
Notifications
You must be signed in to change notification settings - Fork 12.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
thcrap-steam-proton-wrapper: init at 2b636c3
- Loading branch information
1 parent
f5eb492
commit 14a035d
Showing
1 changed file
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
{ | ||
lib, | ||
stdenv, | ||
fetchFromGitHub, | ||
makeWrapper, | ||
bash, | ||
subversion, | ||
gnome, | ||
}: | ||
with lib; let | ||
version = "2b636c3"; | ||
in | ||
stdenv.mkDerivation { | ||
pname = "thcrap-proton"; | ||
inherit version; | ||
|
||
src = fetchFromGitHub { | ||
owner = "tactikauan"; | ||
repo = "thcrap-steam-proton-wrapper"; | ||
rev = version; | ||
sha256 = "sha256-J2O8F75NMdsxSaNVr8zLf+vLEJE6CHqWQIIscuuJZ3o="; | ||
}; | ||
|
||
buildInputs = [bash subversion]; | ||
|
||
nativeBuildInputs = [ | ||
makeWrapper | ||
]; | ||
installPhase = '' | ||
mkdir -p $out/bin | ||
cp thcrap_proton $out/bin/thcrap_proton | ||
''; | ||
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"; | ||
changelog = "https://github.com/tactikauan/thcrap-steam-proton-wrapper/${version}"; | ||
license = licenses.unlicense; | ||
maintainers = with maintainers; [ashuramaruzxc]; | ||
platforms = ["x86_64-linux" "aarch64-linux"]; | ||
mainProgram = "thcrap_proton"; | ||
}; | ||
} |