From 08a1042318096f572118aff645ff1db3a8841c7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Wed, 4 Mar 2009 17:28:25 +0000 Subject: [PATCH] Adding neverball 1.5.0, which comes with neverputt. Fun. svn path=/nixpkgs/trunk/; revision=14338 --- pkgs/games/neverball/default.nix | 33 ++++++++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 5 +++++ 2 files changed, 38 insertions(+) create mode 100644 pkgs/games/neverball/default.nix diff --git a/pkgs/games/neverball/default.nix b/pkgs/games/neverball/default.nix new file mode 100644 index 000000000000..3e1d10b3acb7 --- /dev/null +++ b/pkgs/games/neverball/default.nix @@ -0,0 +1,33 @@ +{stdenv, fetchurl, SDL, mesa, libpng, libjpeg, SDL_ttf, libvorbis, gettext} : + +stdenv.mkDerivation { + name = "neverball-1.5.0"; + src = fetchurl { + url = http://neverball.org/neverball-1.5.0.tar.gz; + sha256 = "8e6f6946cf2b08c13e4956a14f46d74c5a40735965f8fa876668c52d1877ec6a"; + }; + + buildInputs = [ SDL mesa libpng libjpeg SDL_ttf libvorbis gettext ]; + + dontPatchElf = true; + + patchPhase = '' + sed -i -e 's@\./data@'$out/data@ share/base_config.h + sed -i -e 's@\./locale@'$out/locale@ share/base_config.h + sed -i -e 's@-lvorbisfile@-lvorbisfile -lX11@' Makefile + ''; + + installPhase = '' + ensureDir $out/bin $out + cp -R data locale $out + cp neverball $out/bin + cp neverputt $out/bin + cp mapc $out/bin + ''; + + meta = { + homepage = http://neverball.org/; + description = "Tilt the floor to roll a ball"; + license = "GPL"; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 8602a08a5934..bf2929776eb5 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -7135,6 +7135,11 @@ let inherit fetchurl stdenv; }; + neverball = import ../games/neverball { + inherit stdenv fetchurl SDL mesa libpng libjpeg SDL_ttf libvorbis + gettext; + }; + numactl = import ../os-specific/linux/numactl { inherit fetchurl stdenv; };