Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 fetchzip, 3 lib, 4 stdenv, 5 which, 6}: 7 8stdenv.mkDerivation rec { 9 pname = "empty"; 10 version = "0.6.21b"; 11 12 src = fetchzip { 13 url = "mirror://sourceforge/empty/empty/empty-${version}.tgz"; 14 sha256 = "1rkixh2byr70pdxrwr4lj1ckh191rjny1m5xbjsa7nqw1fw6c2xs"; 15 stripRoot = false; 16 }; 17 18 patches = [ 19 ./0.6-Makefile.patch 20 ]; 21 22 nativeBuildInputs = [ which ]; 23 24 makeFlags = [ "PREFIX=$(out)" ]; 25 26 postPatch = '' 27 rm empty 28 ''; 29 30 meta = with lib; { 31 homepage = "https://empty.sourceforge.net"; 32 description = "Simple tool to automate interactive terminal applications"; 33 license = licenses.bsd3; 34 platforms = platforms.all; 35 longDescription = '' 36 The empty utility provides an interface to execute and/or interact with 37 processes under pseudo-terminal sessions (PTYs). This tool is definitely 38 useful in programming of shell scripts designed to communicate with 39 interactive programs like telnet, ssh, ftp, etc. In some cases empty can 40 be the simplest replacement for TCL/expect or other similar programming 41 tools because empty: 42 43 - can be easily invoked directly from shell prompt or script 44 - does not use TCL, Perl, PHP, Python or anything else as an underlying language 45 - is written entirely in C 46 - has small and simple source code 47 - can easily be ported to almost all UNIX-like systems 48 ''; 49 maintainers = [ maintainers.djwf ]; 50 mainProgram = "empty"; 51 }; 52}