diff options
author | Peter Hoeg <peter@hoeg.com> | 2017-09-07 17:17:39 +0800 |
---|---|---|
committer | Peter Hoeg <peter@hoeg.com> | 2017-09-07 17:17:49 +0800 |
commit | 41e7e1304ea61e9bd4948e3f4a299c85522a15b4 (patch) | |
tree | 334609ba5007ea3a018397670bfe891038cbd206 /pkgs/servers | |
parent | 7dad10d2ef2709e4316f7529b09f2c834685188a (diff) |
dict: enable the default upstream server so the client works out of the box
Diffstat (limited to 'pkgs/servers')
-rw-r--r-- | pkgs/servers/dict/default.nix | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/pkgs/servers/dict/default.nix b/pkgs/servers/dict/default.nix index ee0477734c2f8..0e6c39ec92456 100644 --- a/pkgs/servers/dict/default.nix +++ b/pkgs/servers/dict/default.nix @@ -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; }; } |