about summary refs log tree commit diff
path: root/pkgs/games
diff options
context:
space:
mode:
authoraszlig <aszlig@nix.build>2019-09-30 04:17:56 +0200
committeraszlig <aszlig@nix.build>2019-09-30 04:18:04 +0200
commit27e16d415f9499916167c00076cdcf366f084361 (patch)
tree50afe73acc063a5604b9c7bff2599cfd7ab560c8 /pkgs/games
parentcfaa888f6c38c325336b14f8cc6775cf7da95388 (diff)
parenta997e4b18b56f5d57ce6883b255a637243db1045 (diff)
Merge pull request #21 (Add game "Baba Is You")
This adds the latest release of "Baba Is You", a puzzle video game.

Since I do not own this game, I can't test whether it's working, but the
Nix expression overall doesn't look controversial, so I'm merging
anyway.

Thanks to @layus for the contribution.
Diffstat (limited to 'pkgs/games')
-rw-r--r--pkgs/games/humblebundle/baba-is-you.nix27
-rw-r--r--pkgs/games/humblebundle/default.nix1
2 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/games/humblebundle/baba-is-you.nix b/pkgs/games/humblebundle/baba-is-you.nix
new file mode 100644
index 00000000..af8da736
--- /dev/null
+++ b/pkgs/games/humblebundle/baba-is-you.nix
@@ -0,0 +1,27 @@
+{ stdenv, buildGame, fetchHumbleBundle, libGL, makeWrapper }:
+
+buildGame rec {
+  name = "baba-is-you-unstable-${version}";
+  version = "2019-08-07"; # guessed from aug07 in file name.
+
+  src = fetchHumbleBundle {
+    name = "BIY_linux_aug07.tar.gz";
+    machineName = "babaisyou_odtbg_linux_oR9qb";
+    downloadName = "Download";
+    suffix = "tar.gz";
+    md5 = "3694afc5579cdaad7448c9744aa8d063";
+  };
+
+  buildInputs = [ makeWrapper libGL ];
+
+  sandbox.paths.required = [ "$XDG_DATA_HOME/Baba_Is_You" ];
+
+  installPhase = ''
+    mkdir -p "$out/bin" "$out/share/baba-is-you"
+    rm -r bin32
+
+    cp -vrt "$out/share/baba-is-you" .
+    makeWrapper "$out/share/baba-is-you/bin64/Chowdren" "$out/bin/baba-is-you" \
+      --run "cd '$out/share/baba-is-you'"
+  '';
+}
diff --git a/pkgs/games/humblebundle/default.nix b/pkgs/games/humblebundle/default.nix
index 8d712eb8..5de3f40e 100644
--- a/pkgs/games/humblebundle/default.nix
+++ b/pkgs/games/humblebundle/default.nix
@@ -12,6 +12,7 @@ let
     };
 
     antichamber = callPackage_i686 ./antichamber.nix { };
+    baba-is-you = callPackage ./baba-is-you.nix { };
     bastion = callPackage ./bastion.nix {};
     brigador = callPackage ./brigador.nix {};
     cavestoryplus = callPackage ./cavestoryplus.nix {};