]> Git — Sourcephile - julm/julm-nix.git/blob - nixpkgs/pkgs/numptyphysics.nix
nix: format with nixfmt-rfc-style
[julm/julm-nix.git] / nixpkgs / pkgs / numptyphysics.nix
1 {
2 stdenv,
3 fetchFromGitLab,
4 lib,
5 SDL,
6 SDL_image,
7 SDL_ttf,
8 libGL,
9 glib,
10 pkg-config,
11 }:
12
13 stdenv.mkDerivation rec {
14 name = "numptyphysics";
15 version = "0.3.10";
16 src = fetchFromGitLab {
17 owner = "thp";
18 repo = "numptyphysics";
19 rev = version;
20 sha256 = "sha256-YKdUK0ea1lazyaRIj3MMA0wtBKLI4fWAkSU8L53PQpg=";
21 };
22 nativeBuildInputs = [ pkg-config ];
23 buildInputs = [
24 SDL
25 SDL_image
26 SDL_ttf
27 glib
28 libGL
29 ];
30 enableParallelBuilding = true;
31 makeFlags = [
32 "PLATFORM=sdl1"
33 "V=1"
34 "DESTDIR=$(out)"
35 "PREFIX=''"
36 ];
37
38 meta = {
39 maintainers = [ lib.maintainers.schmittlauch ];
40 license = lib.licenses.gpl3Plus;
41 description = "a drawing puzzle game based on construction and physics puzzles";
42 longDescription = ''
43 Harness gravity with your crayon and set about creating blocks, ramps, levers, pulleys and whatever else you fancy to get the little red thing to the little yellow thing.
44
45 Numpty Physics is a drawing puzzle game in the spirit (and style?) of Crayon Physics using the same excellent Box2D engine. Note though that I've not actually played CP so the experience may be very different. Numpty Physics includes a built-in editor so that you may build (and submit) your own levels.
46 '';
47 };
48 }