1 { lib, stdenv, fetchurl, shhmsg, shhopt, xorg }:
3 stdenv.mkDerivation rec {
8 url = "https://shh.thathost.com/pub-unix/files/snake4-${version}.tar.gz";
9 sha256 = "14cng9l857np42zixp440mbc8y5675frb6lhsds53j1cws9cncw9";
12 buildInputs = with xorg; [ shhmsg shhopt libX11 libXt libXpm libXaw libXext ];
15 substituteInPlace Makefile \
16 --replace "-o \$(OWNER) -g \$(GROUP)" "" \
17 --replace "4755" "755"
20 installFlags = [ "INSTLIBDIR=$(out)/lib"
21 "INSTBINDIR=$(out)/bin"
22 "INSTMANDIR=$(out)/man" ];
25 description = "Game starring a fruit-eating snake";
26 homepage = "https://shh.thathost.com/pub-unix/html/snake4.html";
27 license = licenses.artistic1;
28 platforms = platforms.linux;