diff options
Diffstat (limited to 'nixpkgs/pkgs/servers/fingerd/bsd-fingerd/default.nix')
-rw-r--r-- | nixpkgs/pkgs/servers/fingerd/bsd-fingerd/default.nix | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/servers/fingerd/bsd-fingerd/default.nix b/nixpkgs/pkgs/servers/fingerd/bsd-fingerd/default.nix new file mode 100644 index 000000000000..999718160215 --- /dev/null +++ b/nixpkgs/pkgs/servers/fingerd/bsd-fingerd/default.nix @@ -0,0 +1,25 @@ +{ stdenv, fetchurl }: + +# !!! Duplication: this package is almost exactly the same as `bsd-fingerd'. + +stdenv.mkDerivation { + name = "bsd-fingerd-0.17"; + + src = fetchurl { + url = "ftp://ftp.metalab.unc.edu/pub/linux/system/network/finger/bsd-finger-0.17.tar.gz"; + sha256 = "1yhkiv0in588il7f84k2xiy78g9lv12ll0y7047gazhiimk5v244"; + }; + + NIX_CFLAGS_COMPILE = "-D_GNU_SOURCE"; + + patches = [ ./ubuntu-0.17-9.patch ]; + + preBuild = "cd fingerd"; + + preInstall = '' mkdir -p $out/man/man8 $out/sbin ''; + + meta = with stdenv.lib; { + platforms = platforms.linux; + license = licenses.bsdOriginal; + }; +} |