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 {
|
|
|
|
name = "dictd-${version}";
|
2017-09-07 11:17:39 +02:00
|
|
|
version = "1.12.1";
|
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";
|
|
|
|
sha256 = "0min6v60b6z5mrymyjfwzx8nv6rdm8pd8phlwl6v2jl5vkngcdx2";
|
2010-04-14 12:55:50 +02:00
|
|
|
};
|
|
|
|
|
2017-09-07 11:17:39 +02:00
|
|
|
buildInputs = [ libmaa zlib ];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ bison flex libtool which ];
|
|
|
|
|
2017-11-27 15:56:33 +01:00
|
|
|
# Makefile(.in) contains "clientparse.c clientparse.h: clientparse.y" which
|
|
|
|
# causes bison to run twice, and break the build when this happens in
|
|
|
|
# parallel. Test with "make -j clientparse.c clientparse.h". The error
|
|
|
|
# message may be "mv: cannot move 'y.tab.c' to 'clientparse.c'".
|
|
|
|
enableParallelBuilding = false;
|
2014-01-31 13:17:37 +01:00
|
|
|
|
|
|
|
patchPhase = "patch -p0 < ${./buildfix.diff}";
|
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"
|
2017-09-07 11:17:39 +02:00
|
|
|
];
|
2010-04-14 12:55:50 +02:00
|
|
|
|
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";
|
2017-09-07 11:17:39 +02:00
|
|
|
homepage = http://www.dict.org;
|
|
|
|
license = licenses.gpl2;
|
2018-01-17 06:13:23 +01:00
|
|
|
maintainers = with maintainers; [ ];
|
2017-09-07 11:17:39 +02:00
|
|
|
platforms = platforms.linux;
|
2010-04-14 12:55:50 +02:00
|
|
|
};
|
|
|
|
}
|