2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchurl }:
|
2010-07-28 11:55:54 +00:00
|
|
|
|
|
|
|
# !!! Duplication: this package is almost exactly the same as `bsd-finger'.
|
|
|
|
|
2008-01-28 19:51:14 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2021-08-01 20:48:53 +00:00
|
|
|
pname = "bsd-finger";
|
|
|
|
version = "0.17";
|
2008-01-28 19:51:14 +00:00
|
|
|
|
2010-07-28 11:55:54 +00:00
|
|
|
src = fetchurl {
|
2021-11-06 01:56:39 +00:00
|
|
|
url = "mirror://metalab/system/network/finger/bsd-finger-${version}.tar.gz";
|
2010-07-28 11:55:54 +00:00
|
|
|
sha256 = "1yhkiv0in588il7f84k2xiy78g9lv12ll0y7047gazhiimk5v244";
|
|
|
|
};
|
2008-01-28 19:51:14 +00:00
|
|
|
|
2010-07-28 11:55:54 +00:00
|
|
|
NIX_CFLAGS_COMPILE = "-D_GNU_SOURCE";
|
2008-01-28 19:51:14 +00:00
|
|
|
|
2010-07-28 11:55:54 +00:00
|
|
|
patches = [ ./ubuntu-0.17-9.patch ];
|
2008-01-28 19:51:14 +00:00
|
|
|
|
2010-07-28 11:55:54 +00:00
|
|
|
preBuild = "cd finger";
|
2008-01-28 19:51:14 +00:00
|
|
|
|
2021-01-24 09:19:10 +00:00
|
|
|
preInstall = "mkdir -p $out/man/man1 $out/bin ";
|
2016-08-02 16:06:29 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-09-10 19:11:06 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.bsdOriginal;
|
2016-08-02 16:06:29 +00:00
|
|
|
};
|
2008-01-28 19:51:14 +00:00
|
|
|
}
|