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