From ec327dea3d8a17daea39a07aef043b60a8a3fd47 Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Fri, 9 Aug 2024 22:28:55 +0100 Subject: [PATCH] world-of-goo2: init --- nix/pkgs/default.nix | 2 ++ nix/pkgs/world-of-goo2.nix | 24 ++++++++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 nix/pkgs/world-of-goo2.nix diff --git a/nix/pkgs/default.nix b/nix/pkgs/default.nix index 0ba0997a4e..6e9958a9bb 100644 --- a/nix/pkgs/default.nix +++ b/nix/pkgs/default.nix @@ -83,4 +83,6 @@ lukegb-vscode = pkgs.vscode; magicard-cups-driver = pkgs.callPackage ./magicard-cups-driver { }; + + world-of-goo2 = pkgs.callPackage ./world-of-goo2.nix { }; } // (import ./heptapod-runner args) diff --git a/nix/pkgs/world-of-goo2.nix b/nix/pkgs/world-of-goo2.nix new file mode 100644 index 0000000000..47a3a17aae --- /dev/null +++ b/nix/pkgs/world-of-goo2.nix @@ -0,0 +1,24 @@ +{ appimageTools +, requireFile +, curlWithGnuTls +}: + +appimageTools.wrapType2 rec { + pname = "worldofgoo2"; + version = "12329.171"; + + src = requireFile { + name = "World_of_Goo_2-x86_64.${version}.appimage"; + hash = "sha256-/dOder333lqgKi+dQCIzeVtPObRYsn5LSYldXFXaK8o="; + message = "Please download World of Goo 2 from the Humble Store and add it to the store."; + }; + + + extraPkgs = pkgs: [ + pkgs.curlWithGnuTls + ]; + + profile = '' + export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib + ''; +}