2014-01-31 12:17:37 +00:00
|
|
|
{ stdenv, fetchurl, which, bison, flex, libmaa, zlib, libtool }:
|
2010-04-14 10:55:50 +00:00
|
|
|
|
2014-01-31 12:17:37 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "dictd-${version}";
|
2017-09-07 09:17:39 +00:00
|
|
|
version = "1.12.1";
|
2010-04-14 10:55:50 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2014-01-31 12:17:37 +00:00
|
|
|
url = "mirror://sourceforge/dict/dictd-${version}.tar.gz";
|
|
|
|
sha256 = "0min6v60b6z5mrymyjfwzx8nv6rdm8pd8phlwl6v2jl5vkngcdx2";
|
2010-04-14 10:55:50 +00:00
|
|
|
};
|
|
|
|
|
2017-09-07 09:17:39 +00:00
|
|
|
buildInputs = [ libmaa zlib ];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ bison flex libtool which ];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
2014-01-31 12:17:37 +00:00
|
|
|
|
|
|
|
patchPhase = "patch -p0 < ${./buildfix.diff}";
|
2017-09-07 09:17:39 +00:00
|
|
|
configureFlags = [
|
|
|
|
"--enable-dictorg"
|
|
|
|
"--datadir=/run/current-system/share/dictd"
|
|
|
|
];
|
2010-04-14 10:55:50 +00:00
|
|
|
|
2014-01-31 12:17:37 +00:00
|
|
|
meta = with stdenv.lib; {
|
2010-04-14 10:55:50 +00:00
|
|
|
description = "Dict protocol server and client";
|
2017-09-07 09:17:39 +00:00
|
|
|
homepage = http://www.dict.org;
|
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = with maintainers; [ mornfall ];
|
|
|
|
platforms = platforms.linux;
|
2010-04-14 10:55:50 +00:00
|
|
|
};
|
|
|
|
}
|