mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 13:41:26 +00:00
34 lines
986 B
Nix
34 lines
986 B
Nix
{ lib, stdenv, fetchFromGitHub, meson, luajit, ninja, pkg-config
|
|
, python3, SDL2, lua, fftwFloat, zlib, bzip2, curl, darwin }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "the-powder-toy";
|
|
version = "96.0.348";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "The-Powder-Toy";
|
|
repo = "The-Powder-Toy";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-PAnjNeqGJPW7TeoIsaOnuOb1loyKs8pjBseKoD0CvQU=";
|
|
};
|
|
|
|
nativeBuildInputs = [ meson ninja pkg-config python3 ];
|
|
|
|
buildInputs = [ luajit SDL2 lua fftwFloat zlib bzip2 curl ];
|
|
|
|
installPhase = ''
|
|
install -Dm 755 powder $out/bin/powder
|
|
'';
|
|
|
|
propagatedBuildInputs = lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.Cocoa ];
|
|
|
|
meta = with lib; {
|
|
description = "A free 2D physics sandbox game";
|
|
homepage = "http://powdertoy.co.uk/";
|
|
platforms = [ "i686-linux" "x86_64-linux" "x86_64-darwin" ];
|
|
license = licenses.gpl3Plus;
|
|
maintainers = with maintainers; [ abbradar siraben ];
|
|
mainProgram = "powder";
|
|
};
|
|
}
|