20 stdenv.mkDerivation rec {
21 pname = "the-powder-toy";
24 src = fetchFromGitHub {
25 owner = "The-Powder-Toy";
26 repo = "The-Powder-Toy";
27 rev = "refs/tags/v${version}";
28 hash = "sha256-S2aUa25EnUfX6ShW6D+wHrsTLxTcCFcZ/uLE9EWGu4Q=";
35 ] ++ lib.optional stdenv.hostPlatform.isLinux copyDesktopItems;
47 ] ++ lib.optional stdenv.hostPlatform.isDarwin Cocoa;
49 mesonFlags = [ "-Dworkaround_elusive_bzip2=false" ];
54 install -Dm 755 powder $out/bin/powder
57 mv ../resources $out/share
62 desktopItems = [ "resources/powder.desktop" ];
65 description = "Free 2D physics sandbox game";
66 homepage = "https://powdertoy.co.uk/";
67 platforms = platforms.unix;
68 license = licenses.gpl3Plus;
69 maintainers = with maintainers; [
73 mainProgram = "powder";