about summary refs log tree commit diff
path: root/pkgs/by-name
diff options
context:
space:
mode:
authorashuramaruzxc <ashuramaru@tenjin-dk.com>2024-04-09 12:37:40 +0200
committergithub-actions[bot] <github-actions[bot]@users.noreply.github.com>2024-04-11 08:00:49 +0000
commit595f2a3589c3f356083f95f23308270d2075fb74 (patch)
tree83decd3820623b080e84ef6df878d156ef67bb25 /pkgs/by-name
parentfe4caa51eea7ce08ac8f878e438bc6e2356554b9 (diff)
thcrap-steam-proton-wrapper: init at 0-unstable-2024-04-03
(cherry picked from commit b0fbe664b2c965374f335d8a5a578ca20b28cd06)
Diffstat (limited to 'pkgs/by-name')
-rw-r--r--pkgs/by-name/th/thcrap-steam-proton-wrapper/package.nix56
1 files changed, 56 insertions, 0 deletions
diff --git a/pkgs/by-name/th/thcrap-steam-proton-wrapper/package.nix b/pkgs/by-name/th/thcrap-steam-proton-wrapper/package.nix
new file mode 100644
index 0000000000000..56a6029847d45
--- /dev/null
+++ b/pkgs/by-name/th/thcrap-steam-proton-wrapper/package.nix
@@ -0,0 +1,56 @@
+{
+  lib
+  , stdenv
+  , fetchFromGitHub
+  , makeWrapper
+  , bash
+  , subversion
+  , gnome
+}:
+stdenv.mkDerivation {
+  pname = "thcrap-proton";
+  version = "0-unstable-2024-04-03";
+
+  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";
+  };
+}