7 stdenv.mkDerivation rec {
8 srcName = "bsd-finger";
9 pname = srcName + lib.optionalString (!buildClient) "d";
13 url = "mirror://ibiblioPubLinux/system/network/finger/${srcName}-${version}.tar.gz";
14 hash = "sha256-hIhdZo0RfvUOAccDSkXYND10fOxiEuQOjQgVG8GOE/o=";
17 # outputs = [ "out" "man" ];
19 NIX_CFLAGS_COMPILE = "-D_GNU_SOURCE";
26 srcdir = if buildClient then "finger" else "fingerd";
32 bindir = if buildClient then "bin" else "sbin";
33 mandir = if buildClient then "man/man1" else "man/man8";
35 mkdir -p $out/${bindir} $out/${mandir}
41 then "User information lookup program"
42 else "Remote user information server";
43 platforms = platforms.linux;
44 license = licenses.bsdOriginal;
47 # TODO: multiple outputs (manpage)