2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchurl }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# !!! Duplication: this package is almost exactly the same as `bsd-fingerd'.
|
|
|
|
|
2021-08-05 21:33:18 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "bsd-fingerd";
|
|
|
|
version = "0.17";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-12-06 16:07:01 +00:00
|
|
|
url = "mirror://metalab/system/network/finger/bsd-finger-${version}.tar.gz";
|
2020-04-24 23:36:52 +00:00
|
|
|
sha256 = "1yhkiv0in588il7f84k2xiy78g9lv12ll0y7047gazhiimk5v244";
|
|
|
|
};
|
|
|
|
|
|
|
|
NIX_CFLAGS_COMPILE = "-D_GNU_SOURCE";
|
|
|
|
|
|
|
|
patches = [ ./ubuntu-0.17-9.patch ];
|
|
|
|
|
|
|
|
preBuild = "cd fingerd";
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
preInstall = "mkdir -p $out/man/man8 $out/sbin ";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.bsdOriginal;
|
|
|
|
};
|
|
|
|
}
|