Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 30 lines 653 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 ncurses, 6}: 7 8stdenv.mkDerivation rec { 9 pname = "gopher"; 10 version = "3.0.19"; 11 12 src = fetchFromGitHub { 13 owner = "jgoerzen"; 14 repo = "gopher"; 15 rev = "release/${version}"; 16 sha256 = "sha256-8J63TnC3Yq7+64PPLrlPEueMa9D/eWkPsb08t1+rPAA="; 17 }; 18 19 buildInputs = [ ncurses ]; 20 21 preConfigure = "export LIBS=-lncurses"; 22 23 meta = with lib; { 24 homepage = "http://gopher.quux.org:70/devel/gopher"; 25 description = "Ncurses gopher client"; 26 platforms = platforms.linux; # clang doesn't like local regex.h 27 license = licenses.gpl2; 28 maintainers = with maintainers; [ sternenseemann ]; 29 }; 30}