nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at netboot-syslinux-multiplatform 30 lines 864 B view raw
1{ lib, stdenv, fetchurl, shhmsg, shhopt, xorg }: 2 3stdenv.mkDerivation rec { 4 pname = "snake4"; 5 version = "1.0.14"; 6 7 src = fetchurl { 8 url = "https://shh.thathost.com/pub-unix/files/snake4-${version}.tar.gz"; 9 sha256 = "14cng9l857np42zixp440mbc8y5675frb6lhsds53j1cws9cncw9"; 10 }; 11 12 buildInputs = with xorg; [ shhmsg shhopt libX11 libXt libXpm libXaw libXext ]; 13 14 preInstall = '' 15 substituteInPlace Makefile \ 16 --replace "-o \$(OWNER) -g \$(GROUP)" "" \ 17 --replace "4755" "755" 18 ''; 19 20 installFlags = [ "INSTLIBDIR=$(out)/lib" 21 "INSTBINDIR=$(out)/bin" 22 "INSTMANDIR=$(out)/man" ]; 23 24 meta = with lib; { 25 description = "A 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 }; 30}