1 { stdenv, lib, fetchurl, cleanPackaging }:
5 sha256 = "00xbkp99x9v07r34w7m2p8gak5hdsdbka36n7a733rdrrkgf5z7r";
7 in stdenv.mkDerivation {
12 url = "http://saf.bio.caltech.edu/pub/software/linux_or_unix_tools/beta-nettee-${version}.tar.gz";
17 homepage = "http://saf.bio.caltech.edu/nettee.html";
18 description = ''Network "tee" program'';
19 license = lib.licenses.gpl2;
20 maintainers = with lib.maintainers; [ Profpatsch ];
21 platforms = lib.platforms.linux;
24 outputs = [ "bin" "man" "doc" "out" ];
27 # h_addr field was removed
28 sed -e '1 i #define h_addr h_addr_list[0]' \
35 $CC -o $bin/bin/nettee \
36 -Wall -pedantic -std=c99\
37 -D_LARGEFILE64_SOURCE -D_POSIX_SOURCE -D_XOPEN_SOURCE\
42 ${cleanPackaging.commonFileActions {
57 }} $doc/share/doc/nettee
59 mkdir -p $man/share/man/{man1,man3}
60 mv nettee.1 $man/share/man/man1
61 mv nettee_cmd.3 $man/share/man/man3
65 ${cleanPackaging.checkForRemainingFiles}