summary refs log tree commit diff
path: root/pkgs/games/the-powder-toy/default.nix
diff options
context:
space:
mode:
authormultiplealiases <conflictvegetable@protonmail.com>2023-11-15 06:57:33 +0800
committerEmery Hemingway <ehmry@posteo.net>2023-11-16 19:11:18 +0000
commit0a2425dcff7b6f8bbd07455a877c49eb19c87b06 (patch)
treeb64435280a604e5ea711bf4f05e842efdccf6242 /pkgs/games/the-powder-toy/default.nix
parentbeca814e279b6f78cec4798791a3fa2f22109835 (diff)
downloadnixpkgs-0a2425dcff7b6f8bbd07455a877c49eb19c87b06.tar
nixpkgs-0a2425dcff7b6f8bbd07455a877c49eb19c87b06.tar.gz
nixpkgs-0a2425dcff7b6f8bbd07455a877c49eb19c87b06.tar.bz2
nixpkgs-0a2425dcff7b6f8bbd07455a877c49eb19c87b06.tar.lz
nixpkgs-0a2425dcff7b6f8bbd07455a877c49eb19c87b06.tar.xz
nixpkgs-0a2425dcff7b6f8bbd07455a877c49eb19c87b06.tar.zst
nixpkgs-0a2425dcff7b6f8bbd07455a877c49eb19c87b06.zip
the-powder-toy: unstable-2022-08-30 -> 97.0.352
add new deps jsoncpp and libpng, also add mesonFlags
-Dworkaround_elusive_bzip2=false to prevent build failure.
powder.desktop is now generated inside the build directory from a
template in ../resources/powder.template.desktop
Diffstat (limited to 'pkgs/games/the-powder-toy/default.nix')
-rw-r--r--pkgs/games/the-powder-toy/default.nix14
1 files changed, 9 insertions, 5 deletions
diff --git a/pkgs/games/the-powder-toy/default.nix b/pkgs/games/the-powder-toy/default.nix
index 2901f42e095..df8158bf30f 100644
--- a/pkgs/games/the-powder-toy/default.nix
+++ b/pkgs/games/the-powder-toy/default.nix
@@ -12,29 +12,33 @@
 , lua
 , luajit
 , zlib
+, jsoncpp
+, libpng
 , Cocoa }:
 
 stdenv.mkDerivation rec {
   pname = "the-powder-toy";
-  version = "unstable-2022-08-30";
+  version = "97.0.352";
 
   src = fetchFromGitHub {
     owner = "The-Powder-Toy";
     repo = "The-Powder-Toy";
-    rev = "9e712eba080e194fc162b475f58aaed8f4ea008e";
-    sha256 = "sha256-44xUfif1E+T9jzixWgnBxOWmzPPuVZy7rf62ig/CczA=";
+    rev = "v${version}";
+    sha256 = "sha256-LYohsqFU9LBgTXMaV6cf8/zf3fBvT+s5A1JBpPHekH8=";
   };
 
   nativeBuildInputs = [ meson ninja pkg-config python3 ];
 
-  buildInputs = [ SDL2 bzip2 curl fftwFloat lua luajit zlib ]
+  buildInputs = [ SDL2 bzip2 curl fftwFloat lua luajit zlib jsoncpp libpng ]
   ++ lib.optionals stdenv.isDarwin [ Cocoa ];
 
+  mesonFlags = [ "-Dworkaround_elusive_bzip2=false" ];
+
   installPhase = ''
     install -Dm 755 powder $out/bin/powder
 
     mkdir -p $out/share/applications
-    mv ../resources/powder.desktop $out/share/applications
+    mv ./resources/powder.desktop $out/share/applications
     mv ../resources $out/share
   '';