nixpkgs/pkgs/games/the-powder-toy/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

50 lines
1.1 KiB
Nix
Raw Normal View History

{ lib
, stdenv
, fetchFromGitHub
, meson
, ninja
, pkg-config
, python3
, SDL2
, bzip2
, curl
, fftwFloat
, lua
, luajit
, zlib
, Cocoa }:
2015-04-08 01:44:39 +03:00
stdenv.mkDerivation rec {
pname = "the-powder-toy";
version = "unstable-2022-08-30";
2016-08-13 03:15:04 +03:00
2015-04-08 01:44:39 +03:00
src = fetchFromGitHub {
2020-08-08 03:57:13 +03:00
owner = "The-Powder-Toy";
2015-04-08 01:44:39 +03:00
repo = "The-Powder-Toy";
rev = "9e712eba080e194fc162b475f58aaed8f4ea008e";
sha256 = "sha256-44xUfif1E+T9jzixWgnBxOWmzPPuVZy7rf62ig/CczA=";
2015-04-08 01:44:39 +03:00
};
2021-07-15 13:59:59 +03:00
nativeBuildInputs = [ meson ninja pkg-config python3 ];
2015-04-08 01:44:39 +03:00
buildInputs = [ SDL2 bzip2 curl fftwFloat lua luajit zlib ]
++ lib.optionals stdenv.isDarwin [ Cocoa ];
2015-04-08 01:44:39 +03:00
installPhase = ''
2021-07-15 13:59:59 +03:00
install -Dm 755 powder $out/bin/powder
2021-11-05 11:04:27 +03:00
mkdir -p $out/share/applications
mv ../resources/powder.desktop $out/share/applications
mv ../resources $out/share
2015-04-08 01:44:39 +03:00
'';
meta = with lib; {
2015-04-08 01:44:39 +03:00
description = "A free 2D physics sandbox game";
homepage = "https://powdertoy.co.uk/";
platforms = platforms.unix;
2021-07-06 08:43:22 +03:00
license = licenses.gpl3Plus;
2020-08-08 03:57:13 +03:00
maintainers = with maintainers; [ abbradar siraben ];
2021-07-06 07:36:48 +03:00
mainProgram = "powder";
2015-04-08 01:44:39 +03:00
};
}