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