summary refs log tree commit diff
path: root/pkgs/servers/dict/1.9.15.nix
blob: b3d104b3901129f27765f296eeda139f7d2c0183 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
args : with args; with builderDefs;
        let localDefs = builderDefs.passthru.function ((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);
        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;
        };
}