2010-07-28 11:55:54 +00:00
|
|
|
{ stdenv, fetchurl }:
|
|
|
|
|
|
|
|
# !!! Duplication: this package is almost exactly the same as `bsd-finger'.
|
|
|
|
|
2008-01-28 19:51:14 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2010-07-28 11:55:54 +00:00
|
|
|
name = "bsd-finger-0.17";
|
2008-01-28 19:51:14 +00:00
|
|
|
|
2010-07-28 11:55:54 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "ftp://ftp.metalab.unc.edu/pub/linux/system/network/finger/${name}.tar.gz";
|
|
|
|
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
|
|
|
|
2010-07-28 11:55:54 +00:00
|
|
|
preInstall = '' ensureDir $out/man/man1 $out/bin '';
|
2008-01-28 19:51:14 +00:00
|
|
|
}
|