Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dict: enable the default upstream server so the client works out of t…
…he box
- Loading branch information
Showing
1 changed file
with
14 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
}; | ||
} |