From 59c204446f8ba4fd88e8087c079f31073e9a8640 Mon Sep 17 00:00:00 2001 From: Trolli Schmittlauch Date: Tue, 15 Jun 2021 14:08:29 +0200 Subject: [PATCH] numptyphysics: still broken init at 0.3.6 --- default.nix | 1 + pkgs/numptyphysics/default.nix | 38 ++++++++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 pkgs/numptyphysics/default.nix diff --git a/default.nix b/default.nix index 3422af1..5eac586 100644 --- a/default.nix +++ b/default.nix @@ -17,4 +17,5 @@ rec { lolcommits = pkgs.callPackage ./pkgs/lolcommits { mplayer = mplayerV4l; }; mplayerV4l = pkgs.mplayer.override { v4lSupport = true; }; vollkorn = pkgs.callPackage ./pkgs/vollkorn { }; + numptyphysics = pkgs.callPackage ./pkgs/numptyphysics { }; } diff --git a/pkgs/numptyphysics/default.nix b/pkgs/numptyphysics/default.nix new file mode 100644 index 0000000..23cdf85 --- /dev/null +++ b/pkgs/numptyphysics/default.nix @@ -0,0 +1,38 @@ +{ stdenv +, fetchFromGitHub +, lib +, SDL2 +, SDL2_image +, SDL2_ttf +, libGL +, libGLU +, glib +, pkgconfig +}: + +stdenv.mkDerivation rec { + name = "numptyphysics"; + version = "0.3.6"; + src = fetchFromGitHub { + owner = "thp"; + repo = "numptyphysics"; + rev = version; + sha256 = "03cqzp8wj00kwc5ykhk27vv9jpgcn8b99lkfzj557lmvvyx1rrsd"; + }; + nativeBuildInputs = [ pkgconfig ]; + buildInputs = [ SDL2 SDL2_image SDL2_ttf glib libGL libGLU ]; + enableParallelBuilding = true; + installFlags = [ "DESTDIR=$(out)" "PREFIX=''" ]; + + meta = { + broken = true; + maintainers = [ lib.maintainers.schmittlauch ]; + license = lib.licenses.gpl3Plus; + description = "a drawing puzzle game based on construction and physics puzzles"; + longDescription = '' + 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. + + 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. + ''; + }; +}