1{ stdenv
2, fetchurl
3, bison
4, pkgconfig
5, multipleOutputs ? false #Uses incomplete features of nix!
6}:
7
8stdenv.mkDerivation (rec {
9 name = "sphinxbase-0.8";
10
11 src = fetchurl {
12 url = "mirror://sourceforge/cmusphinx/${name}.tar.gz";
13 sha256 = "1a3c91g6rcfb2k8qyfhnd7s68ds6pxwv61xfp0ai1arbhx28jw2m";
14 };
15
16 buildInputs = [ pkgconfig bison ];
17
18 meta = {
19 description = "Support Library for Pocketsphinx";
20 homepage = http://cmusphinx.sourceforge.net;
21 license = stdenv.lib.licenses.bsd2;
22 platforms = stdenv.lib.platforms.unix;
23 maintainers = with stdenv.lib.maintainers; [ fuuzetsu ];
24 };
25
26} // (stdenv.lib.optionalAttrs multipleOutputs {
27 outputs = [ "out" "lib" "headers" ];
28
29 postInstall = ''
30 mkdir -p $lib
31 cp -av $out/lib* $lib
32
33 mkdir -p $headers
34 cp -av $out/include $headers
35 '';
36}))