Added dict and working on adding dictionaries
svn path=/nixpkgs/trunk/; revision=10976
This commit is contained in:
parent
a277b420ee
commit
3b2f272341
4 changed files with 100 additions and 0 deletions
24
pkgs/servers/dict/1.9.15.nix
Normal file
24
pkgs/servers/dict/1.9.15.nix
Normal file
|
@ -0,0 +1,24 @@
|
|||
args : with args; with builderDefs {src="";} null;
|
||||
let localDefs = builderDefs (rec {
|
||||
src = /* put a fetchurl here */
|
||||
fetchurl {
|
||||
url = ftp://ftp.dict.org/pub/dict/dictd-1.9.15.tar.gz;
|
||||
sha256 = "0p41yf72l0igmshz6vxy3hm51z25600vrnb9j2jpgws4c03fqnac";
|
||||
};
|
||||
|
||||
buildInputs = [flex bison which];
|
||||
configureFlags = [ " --datadir=/var/run/current-system/share/dictd " ];
|
||||
}) args null; /* null is a terminator for sumArgs */
|
||||
in with localDefs;
|
||||
stdenv.mkDerivation rec {
|
||||
name = "dict-"+version;
|
||||
builder = writeScript (name + "-builder")
|
||||
(textClosure localDefs
|
||||
[doConfigure doMakeInstall doForceShare doPropagate]);
|
||||
meta = {
|
||||
description = "
|
||||
Dict protocol server and client.
|
||||
";
|
||||
inherit src;
|
||||
};
|
||||
}
|
60
pkgs/servers/dict/dictd-db.nix
Normal file
60
pkgs/servers/dict/dictd-db.nix
Normal file
|
@ -0,0 +1,60 @@
|
|||
{
|
||||
builderDefs
|
||||
}:
|
||||
let makeDictdDBFreedict = _src: _name:
|
||||
with builderDefs {src="";} null;
|
||||
let localDefs = builderDefs (rec {
|
||||
src=_src;
|
||||
doInstall = FullDepEntry (''
|
||||
ensureDir $out/share/dictd
|
||||
tar xf ${src} -C $out/share/dictd
|
||||
'') ["minInit" "addInputs" "defEnsureDir"];
|
||||
|
||||
buildInputs = [];
|
||||
configureFlags = [];
|
||||
}) null; /* null is a terminator for sumArgs */
|
||||
in with localDefs;
|
||||
stdenv.mkDerivation rec {
|
||||
name = "dictd-db-${_name}";
|
||||
builder = writeScript (name + "-builder")
|
||||
(textClosure localDefs
|
||||
[doInstall doForceShare doPropagate]);
|
||||
meta = {
|
||||
description = "
|
||||
${name} dictionary for dictd.
|
||||
";
|
||||
inherit src;
|
||||
};
|
||||
};
|
||||
fetchurl = (builderDefs {src="";} null).fetchurl;
|
||||
in
|
||||
{
|
||||
nld2eng = makeDictdDBFreedict (fetchurl {
|
||||
url = http://prdownloads.sourceforge.net/freedict/nld-eng.tar.gz;
|
||||
sha256 = "1vhw81pphb64fzsjvpzsnnyr34ka2fxizfwilnxyjcmpn9360h07";
|
||||
}) "nld-eng";
|
||||
eng2nld = makeDictdDBFreedict (fetchurl {
|
||||
url = http://downloads.sourceforge.net/freedict/eng-nld.tar.gz;
|
||||
sha256 = "0rcg28ldykv0w2mpxc6g4rqmfs33q7pbvf68ssy1q9gpf6mz7vcl";
|
||||
}) "eng-nld";
|
||||
}
|
||||
fetchurl {
|
||||
url = http://downloads.sourceforge.net/freedict/eng-rus.tar.gz;
|
||||
sha256 = "15409ivhww1wsfjr05083pv6mg10bak8v5pg1wkiqybk7ck61rry";
|
||||
};
|
||||
fetchurl {
|
||||
url = http://downloads.sourceforge.net/freedict/rus-eng.tar.gz;
|
||||
sha256 = "";
|
||||
};
|
||||
fetchurl {
|
||||
url = http://downloads.sourceforge.net/freedict/fra-eng.tar.gz;
|
||||
sha256 = "0sdd88s2zs5whiwdf3hd0s4pzzv75sdsccsrm1wxc87l3hjm85z3";
|
||||
};
|
||||
fetchurl {
|
||||
url = http://downloads.sourceforge.net/freedict/eng-fra.tar.gz;
|
||||
sha256 = "0fi6rrnbqnhc6lq8d0nmn30zdqkibrah0mxfg27hsn9z7alwbj3m";
|
||||
};
|
||||
fetchurl {
|
||||
url = http://downloads.sourceforge.net/mueller-dict/mueller-dict-3.1.tar.gz;
|
||||
sha256 = "04r5xxznvmcb8hkxqbjgfh2gxvbdd87jnhqn5gmgvxxw53zpwfmq";
|
||||
};
|
4
pkgs/servers/dict/freedict.nix
Normal file
4
pkgs/servers/dict/freedict.nix
Normal file
|
@ -0,0 +1,4 @@
|
|||
fetchurl {
|
||||
url = http://downloads.sourceforge.net/freedict/freedict-tools-0.2.tar.bz2;
|
||||
sha256 = "0hai4rvyrsgagvwq8ahp8iwby77wr62whkkda2pkp8l6fp9sm2gd";
|
||||
};
|
|
@ -3706,6 +3706,18 @@ rec {
|
|||
db4Support = true;
|
||||
};
|
||||
|
||||
dictFun = lib.sumArgs (selectVersion ../servers/dict "1.9.15") {
|
||||
inherit builderDefs which;
|
||||
flex=flex2534;
|
||||
bison=bison23;
|
||||
};
|
||||
|
||||
dict = dictFun null;
|
||||
|
||||
dictdDBs = recurseIntoAttrs (import ../servers/dict/dictd-db.nix {
|
||||
inherit builderDefs;
|
||||
});
|
||||
|
||||
dovecot = import ../servers/mail/dovecot {
|
||||
inherit fetchurl stdenv ;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue