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"
26 env.NIX_CFLAGS_COMPILE = toString (lib.optionals stdenv.cc.isClang [
27 "-Wno-error=implicit-function-declaration"
31 install -Dm444 -t $out/share/doc/${pname} NEWS README
35 description = "Dict protocol server and client";
36 homepage = "http://www.dict.org";
37 license = licenses.gpl2Plus;
38 maintainers = with maintainers; [ sikmir ];
39 platforms = platforms.unix;