Skip to content

Commit

Permalink
dict: enable the default upstream server so the client works out of t…
Browse files Browse the repository at this point in the history
…he box
  • Loading branch information
peterhoeg committed Sep 7, 2017
1 parent 7dad10d commit 41e7e13
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions 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;
};
}

0 comments on commit 41e7e13

Please sign in to comment.