diff options
author | Guillaume Maudoux <layus.on@gmail.com> | 2019-04-03 11:37:08 +0200 |
---|---|---|
committer | Guillaume Maudoux <layus.on@gmail.com> | 2019-04-03 11:37:08 +0200 |
commit | a820753b5ab448a015e2f1cbd56fc44284367f96 (patch) | |
tree | 81211daede98d923902d8b9eadc70962ff50411a /pkgs/games/humblebundle/baba-is-you.nix | |
parent | 0ea4fa96f4e6a1de27f50a97db9007e14958547d (diff) |
baba-is-you: init at 2019-03-31
Diffstat (limited to 'pkgs/games/humblebundle/baba-is-you.nix')
-rw-r--r-- | pkgs/games/humblebundle/baba-is-you.nix | 27 |
1 files changed, 27 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..555adb9d --- /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-03-31"; # guessed from mar31 in file name. + + # https://dl.humble.com/hempulioy/BIY_linux_mar31.tar.gz + src = fetchHumbleBundle { + machineName = "babaisyou_odtbg_linux_oR9qb"; + downloadName = "Download"; + suffix = "tar.gz"; + md5 = "61893c3ead0dc1823115ad83dcb9aee0"; + }; + + buildInputs = [ makeWrapper libGL ]; + + sandbox.paths.required = [ "$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'" + ''; +} |