summary refs log tree commit diff
path: root/pkgs/development/libraries/snack/default.nix
blob: d7a0b11a8dabad09b1fec22c4df65ddb587f578f (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
25
26
27
28
29
30
31
# alsaLib vorbisTools python can be made optional

{ stdenv, fetchurl, python, tcl, tk, vorbisTools, pkgconfig, x11 }:

stdenv.mkDerivation {
  name = "snack-2.2.10";

  src = fetchurl {
    url = http://www.speech.kth.se/snack/dist/snack2.2.10.tar.gz;
    sha256 = "07p89jv9qnjqkszws9sssq93ayvwpdnkcxrvyicbm4mb8x2pdzjb";
  };

  configureFlags = "--with-tcl=${tcl}/lib --with-tk=${tk}/lib";

  postUnpack = ''sourceRoot="$sourceRoot/unix"'';

  buildInputs = [ python tcl tk vorbisTools pkgconfig x11 ];

  postInstall = "aoeu";

  installPhase = ''
    mkdir -p $out
    make install DESTDIR="$out" 
  '';

  meta = { 
    description = "The Snack Sound Toolkit (Tcl)";
    homepage = http://www.speech.kth.se/snack/;
    license = stdenv.lib.licenses.gpl2;
  };
}