dict: enable the default upstream server so the client works out of the box

This commit is contained in:
Peter Hoeg 2017-09-07 17:17:39 +08:00
parent 7dad10d2ef
commit 41e7e1304e

View file

@ -1,22 +1,31 @@
{ stdenv, fetchurl, which, bison, flex, libmaa, zlib, libtool }:
stdenv.mkDerivation rec {
version = "1.12.1";
name = "dictd-${version}";
version = "1.12.1";
src = fetchurl {
url = "mirror://sourceforge/dict/dictd-${version}.tar.gz";
sha256 = "0min6v60b6z5mrymyjfwzx8nv6rdm8pd8phlwl6v2jl5vkngcdx2";
};
buildInputs = [ flex bison which libmaa zlib libtool ];
buildInputs = [ libmaa zlib ];
nativeBuildInputs = [ bison flex libtool which ];
enableParallelBuilding = true;
patchPhase = "patch -p0 < ${./buildfix.diff}";
configureFlags = "--datadir=/var/run/current-system/share/dictd";
configureFlags = [
"--enable-dictorg"
"--datadir=/run/current-system/share/dictd"
];
meta = with stdenv.lib; {
description = "Dict protocol server and client";
maintainers = [ maintainers.mornfall ];
platforms = platforms.linux;
homepage = http://www.dict.org;
license = licenses.gpl2;
maintainers = with maintainers; [ mornfall ];
platforms = platforms.linux;
};
}