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 {
|
|
|
|
version = "1.12.1";
|
|
|
|
name = "dictd-${version}";
|
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";
|
|
|
|
sha256 = "0min6v60b6z5mrymyjfwzx8nv6rdm8pd8phlwl6v2jl5vkngcdx2";
|
2010-04-14 11:55:50 +01:00
|
|
|
};
|
|
|
|
|
2014-01-31 12:17:37 +00:00
|
|
|
buildInputs = [ flex bison which libmaa zlib libtool ];
|
|
|
|
|
|
|
|
patchPhase = "patch -p0 < ${./buildfix.diff}";
|
2010-04-14 11:55:50 +01:00
|
|
|
configureFlags = "--datadir=/var/run/current-system/share/dictd";
|
|
|
|
|
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";
|
2014-09-13 12:51:39 +01:00
|
|
|
maintainers = [ maintainers.mornfall ];
|
2014-01-31 12:17:37 +00:00
|
|
|
platforms = platforms.linux;
|
2010-04-14 11:55:50 +01:00
|
|
|
};
|
|
|
|
}
|