2008-08-19 06:54:09 +01:00
|
|
|
args : with args; with builderDefs;
|
2008-11-04 21:24:10 +00:00
|
|
|
let localDefs = builderDefs.passthru.function ((rec {
|
2008-08-19 06:54:09 +01:00
|
|
|
src = /* put a fetchurl here */
|
|
|
|
fetchurl {
|
2009-01-24 20:58:29 +00:00
|
|
|
url = mirror://sourceforge/dict/dictd-1.9.15.tar.gz;
|
2008-08-19 06:54:09 +01:00
|
|
|
sha256 = "0p41yf72l0igmshz6vxy3hm51z25600vrnb9j2jpgws4c03fqnac";
|
|
|
|
};
|
2008-03-06 04:39:05 +00:00
|
|
|
|
2008-08-19 06:54:09 +01:00
|
|
|
buildInputs = [flex bison which];
|
|
|
|
configureFlags = [ " --datadir=/var/run/current-system/share/dictd " ];
|
|
|
|
}) // args);
|
|
|
|
in with localDefs;
|
2008-03-06 04:39:05 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2008-08-19 06:54:09 +01:00
|
|
|
name = "dict-"+version;
|
|
|
|
builder = writeScript (name + "-builder")
|
|
|
|
(textClosure localDefs
|
|
|
|
[doConfigure doMakeInstall doForceShare doPropagate]);
|
|
|
|
meta = {
|
2009-03-03 13:27:40 +00:00
|
|
|
description = "Dict protocol server and client";
|
2008-08-19 06:54:09 +01:00
|
|
|
inherit src;
|
|
|
|
};
|
2008-03-06 04:39:05 +00:00
|
|
|
}
|