pytrainer: unpin python 3.10
[NixPkgs.git] / pkgs / games / snake4 / default.nix
blob79524e974c4d21b8cab3fdbe6d2f2ce9cc8c27a4
1 { lib, stdenv, fetchurl, shhmsg, shhopt, xorg }:
3 stdenv.mkDerivation rec {
4   pname = "snake4";
5   version = "1.0.14";
7   src = fetchurl {
8     url = "https://shh.thathost.com/pub-unix/files/snake4-${version}.tar.gz";
9     sha256 = "14cng9l857np42zixp440mbc8y5675frb6lhsds53j1cws9cncw9";
10   };
12   buildInputs = with xorg; [ shhmsg shhopt libX11 libXt libXpm libXaw libXext ];
14   preInstall = ''
15     substituteInPlace Makefile \
16       --replace "-o \$(OWNER) -g \$(GROUP)" "" \
17       --replace "4755" "755"
18   '';
20   installFlags = [ "INSTLIBDIR=$(out)/lib"
21                    "INSTBINDIR=$(out)/bin"
22                    "INSTMANDIR=$(out)/man" ];
24   meta = with lib; {
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;
29   };