1 { lib, stdenv, fetchurl, which, bison, flex, libmaa, zlib, libtool }:
3 stdenv.mkDerivation rec {
8 url = "mirror://sourceforge/dict/dictd-${version}.tar.gz";
9 sha256 = "sha256-5PGmfRaJTYSUVp19yUQsFcw4wBHyuWMcfxzGInZlKhs=";
12 buildInputs = [ libmaa zlib ];
14 nativeBuildInputs = [ bison flex libtool which ];
16 # In earlier versions, parallel building was not supported but it's OK with 1.13
17 enableParallelBuilding = true;
19 patchPhase = "patch -p0 < ${./buildfix.diff}";
22 "--datadir=/run/current-system/sw/share/dictd"
27 install -Dm444 -t $out/share/doc/${pname} NEWS README
31 description = "Dict protocol server and client";
32 homepage = "http://www.dict.org";
33 license = licenses.gpl2Plus;
34 maintainers = with maintainers; [ sikmir ];
35 platforms = platforms.unix;