nixpkgs/pkgs/tools/networking/bsd-finger/default.nix
volth bc0d605cf1 treewide: fix double quoted strings in meta.description
Signed-off-by: Ben Siraphob <bensiraphob@gmail.com>
2021-01-24 19:56:59 +07:00

26 lines
597 B
Nix

{ lib, stdenv, fetchurl }:
# !!! Duplication: this package is almost exactly the same as `bsd-finger'.
stdenv.mkDerivation rec {
name = "bsd-finger-0.17";
src = fetchurl {
url = "ftp://ftp.metalab.unc.edu/pub/linux/system/network/finger/${name}.tar.gz";
sha256 = "1yhkiv0in588il7f84k2xiy78g9lv12ll0y7047gazhiimk5v244";
};
NIX_CFLAGS_COMPILE = "-D_GNU_SOURCE";
patches = [ ./ubuntu-0.17-9.patch ];
preBuild = "cd finger";
preInstall = "mkdir -p $out/man/man1 $out/bin ";
meta = with lib; {
platforms = platforms.linux;
license = licenses.bsdOriginal;
};
}