]> Git — Sourcephile - julm/julm-nix.git/blob - nixpkgs/pkgs/numptyphysics.nix
mpv: tweak screenshot-template
[julm/julm-nix.git] / nixpkgs / pkgs / numptyphysics.nix
1 { stdenv
2 , fetchFromGitLab
3 , lib
4 , SDL
5 , SDL_image
6 , SDL_ttf
7 , libGL
8 , glib
9 , pkg-config
10 }:
11
12 stdenv.mkDerivation rec {
13 name = "numptyphysics";
14 version = "0.3.10";
15 src = fetchFromGitLab {
16 owner = "thp";
17 repo = "numptyphysics";
18 rev = version;
19 sha256 = "sha256-YKdUK0ea1lazyaRIj3MMA0wtBKLI4fWAkSU8L53PQpg=";
20 };
21 nativeBuildInputs = [ pkg-config ];
22 buildInputs = [ SDL SDL_image SDL_ttf glib libGL ];
23 enableParallelBuilding = true;
24 makeFlags = [ "PLATFORM=sdl1" "V=1" "DESTDIR=$(out)" "PREFIX=''" ];
25
26 meta = {
27 maintainers = [ lib.maintainers.schmittlauch ];
28 license = lib.licenses.gpl3Plus;
29 description = "a drawing puzzle game based on construction and physics puzzles";
30 longDescription = ''
31 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.
32
33 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.
34 '';
35 };
36 }
37