From 1e3a12bf22b86f03f4b4a0dcbe03806cd1abc281 Mon Sep 17 00:00:00 2001 From: Pascal Wittmann Date: Thu, 9 Jul 2015 15:24:00 +0200 Subject: [PATCH] snake4: init at 1.0.14 --- pkgs/games/snake4/default.nix | 27 +++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 29 insertions(+) create mode 100644 pkgs/games/snake4/default.nix diff --git a/pkgs/games/snake4/default.nix b/pkgs/games/snake4/default.nix new file mode 100644 index 000000000000..081604d2ce8e --- /dev/null +++ b/pkgs/games/snake4/default.nix @@ -0,0 +1,27 @@ +{ stdenv, fetchurl, shhmsg, shhopt, xlibs }: + +stdenv.mkDerivation rec { + name = "snake4-1.0.14"; + + src = fetchurl { + url = "http://shh.thathost.com/pub-unix/files/${name}.tar.gz"; + sha256 = "14cng9l857np42zixp440mbc8y5675frb6lhsds53j1cws9cncw9"; + }; + + buildInputs = with xlibs; [ shhmsg shhopt libX11 libXt libXpm libXaw libXext]; + + preInstall = '' + substituteInPlace Makefile --replace "-o \$(OWNER) -g \$(GROUP)" "" + ''; + + installFlags = [ "INSTLIBDIR=$(out)/lib" + "INSTBINDIR=$(out)/bin" + "INSTMANDIR=$(out)/man" ]; + + meta = with stdenv.lib; { + description = "A game starring a fruit-eating snake"; + homepage = http://shh.thathost.com/pub-unix/html/snake4.html; + license = licenses.artistic1; + platforms = platforms.linux; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 8b92885de602..e6ad36078546 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -13648,6 +13648,8 @@ let # get binaries without data built by Hydra simutrans_binaries = lowPrio simutrans.binaries; + snake4 = callPackage ../games/snake4 { }; + soi = callPackage ../games/soi {}; # You still can override by passing more arguments.