2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, fetchurl, which, bison, flex, libmaa, zlib, libtool }:
|
2010-04-14 12:55:50 +02:00
|
|
|
|
2014-01-31 13:17:37 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "dictd";
|
2021-12-11 12:01:35 +01:00
|
|
|
version = "1.13.1";
|
2010-04-14 12:55:50 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2014-01-31 13:17:37 +01:00
|
|
|
url = "mirror://sourceforge/dict/dictd-${version}.tar.gz";
|
2021-12-11 12:01:35 +01:00
|
|
|
sha256 = "sha256-5PGmfRaJTYSUVp19yUQsFcw4wBHyuWMcfxzGInZlKhs=";
|
2010-04-14 12:55:50 +02:00
|
|
|
};
|
|
|
|
|
2017-09-07 11:17:39 +02:00
|
|
|
buildInputs = [ libmaa zlib ];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ bison flex libtool which ];
|
|
|
|
|
2020-07-28 18:12:20 +02:00
|
|
|
# In earlier versions, parallel building was not supported but it's OK with 1.13
|
|
|
|
enableParallelBuilding = true;
|
2014-01-31 13:17:37 +01:00
|
|
|
|
|
|
|
patchPhase = "patch -p0 < ${./buildfix.diff}";
|
2020-07-28 18:12:20 +02:00
|
|
|
|
2017-09-07 11:17:39 +02:00
|
|
|
configureFlags = [
|
2019-02-14 19:56:35 +01:00
|
|
|
"--datadir=/run/current-system/sw/share/dictd"
|
2020-07-28 18:12:20 +02:00
|
|
|
"--sysconfdir=/etc"
|
2017-09-07 11:17:39 +02:00
|
|
|
];
|
2010-04-14 12:55:50 +02:00
|
|
|
|
2020-07-28 18:12:20 +02:00
|
|
|
postInstall = ''
|
|
|
|
install -Dm444 -t $out/share/doc/${pname} NEWS README
|
|
|
|
'';
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2010-04-14 12:55:50 +02:00
|
|
|
description = "Dict protocol server and client";
|
2020-07-28 18:12:20 +02:00
|
|
|
homepage = "http://www.dict.org";
|
2023-09-10 21:28:35 +02:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = with maintainers; [ sikmir ];
|
|
|
|
platforms = platforms.unix;
|
2010-04-14 12:55:50 +02:00
|
|
|
};
|
|
|
|
}
|