2014-01-31 12:17:37 +00:00
|
|
|
{ stdenv, fetchurl, which, bison, flex, libmaa, zlib, libtool }:
|
2010-04-14 11:55:50 +01:00
|
|
|
|
2014-01-31 12:17:37 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "dictd";
|
2020-04-05 13:14:16 +01:00
|
|
|
version = "1.13.0";
|
2010-04-14 11:55:50 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2014-01-31 12:17:37 +00:00
|
|
|
url = "mirror://sourceforge/dict/dictd-${version}.tar.gz";
|
2020-04-05 13:14:16 +01:00
|
|
|
sha256 = "1r413a78sa3mcrgddgdj1za34dj6mnd4dg66csqv2yz8fypm3fpf";
|
2010-04-14 11:55:50 +01:00
|
|
|
};
|
|
|
|
|
2017-09-07 10:17:39 +01:00
|
|
|
buildInputs = [ libmaa zlib ];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ bison flex libtool which ];
|
|
|
|
|
2020-07-28 17:12:20 +01:00
|
|
|
# In earlier versions, parallel building was not supported but it's OK with 1.13
|
|
|
|
enableParallelBuilding = true;
|
2014-01-31 12:17:37 +00:00
|
|
|
|
|
|
|
patchPhase = "patch -p0 < ${./buildfix.diff}";
|
2020-07-28 17:12:20 +01:00
|
|
|
|
2017-09-07 10:17:39 +01:00
|
|
|
configureFlags = [
|
|
|
|
"--enable-dictorg"
|
2019-02-14 18:56:35 +00:00
|
|
|
"--datadir=/run/current-system/sw/share/dictd"
|
2020-07-28 17:12:20 +01:00
|
|
|
"--sysconfdir=/etc"
|
2017-09-07 10:17:39 +01:00
|
|
|
];
|
2010-04-14 11:55:50 +01:00
|
|
|
|
2020-07-28 17:12:20 +01:00
|
|
|
postInstall = ''
|
|
|
|
install -Dm444 -t $out/share/doc/${pname} NEWS README
|
|
|
|
'';
|
|
|
|
|
2014-01-31 12:17:37 +00:00
|
|
|
meta = with stdenv.lib; {
|
2010-04-14 11:55:50 +01:00
|
|
|
description = "Dict protocol server and client";
|
2020-07-28 17:12:20 +01:00
|
|
|
homepage = "http://www.dict.org";
|
|
|
|
license = licenses.gpl2;
|
2018-01-17 05:13:23 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2020-07-28 17:12:20 +01:00
|
|
|
platforms = platforms.linux;
|
2010-04-14 11:55:50 +01:00
|
|
|
};
|
|
|
|
}
|