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.gpl2Only;
20 maintainers = with lib.maintainers; [ Profpatsch ];
21 platforms = lib.platforms.linux;
22 mainProgram = "nettee";
25 outputs = [ "bin" "man" "doc" "out" ];
28 # h_addr field was removed
29 sed -e '1 i #define h_addr h_addr_list[0]' \
36 $CC -o $bin/bin/nettee \
37 -Wall -pedantic -std=c99\
38 -D_LARGEFILE64_SOURCE -D_POSIX_SOURCE -D_XOPEN_SOURCE\
43 ${cleanPackaging.commonFileActions {
58 }} $doc/share/doc/nettee
60 mkdir -p $man/share/man/{man1,man3}
61 mv nettee.1 $man/share/man/man1
62 mv nettee_cmd.3 $man/share/man/man3
66 ${cleanPackaging.checkForRemainingFiles}