17 stdenv.mkDerivation rec {
18 pname = "the-powder-toy";
19 version = "unstable-2022-08-30";
21 src = fetchFromGitHub {
22 owner = "The-Powder-Toy";
23 repo = "The-Powder-Toy";
24 rev = "9e712eba080e194fc162b475f58aaed8f4ea008e";
25 sha256 = "sha256-44xUfif1E+T9jzixWgnBxOWmzPPuVZy7rf62ig/CczA=";
28 nativeBuildInputs = [ meson ninja pkg-config python3 ];
30 buildInputs = [ SDL2 bzip2 curl fftwFloat lua luajit zlib ]
31 ++ lib.optionals stdenv.isDarwin [ Cocoa ];
34 install -Dm 755 powder $out/bin/powder
36 mkdir -p $out/share/applications
37 mv ../resources/powder.desktop $out/share/applications
38 mv ../resources $out/share
42 description = "A free 2D physics sandbox game";
43 homepage = "https://powdertoy.co.uk/";
44 platforms = platforms.unix;
45 license = licenses.gpl3Plus;
46 maintainers = with maintainers; [ abbradar siraben ];
47 mainProgram = "powder";