summary refs log tree commit diff
path: root/pkgs/development/libraries/snack/default.nix
blob: 8c97d0224c662c62df80a8fb9a7741eb7f1b3446 (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
32
33
34
35
36
# alsa-lib vorbis-tools python can be made optional

{ lib, stdenv, fetchurl, python, tcl, tk, vorbis-tools, pkg-config, xlibsWrapper }:

stdenv.mkDerivation rec {
  pname = "snack";
  version = "2.2.10";

  src = fetchurl {
    url = "https://www.speech.kth.se/snack/dist/${pname}${version}.tar.gz";
    sha256 = "07p89jv9qnjqkszws9sssq93ayvwpdnkcxrvyicbm4mb8x2pdzjb";
  };

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

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

  nativeBuildInputs = [ pkg-config ];
  buildInputs = [ python tcl tk vorbis-tools xlibsWrapper ];

  hardeningDisable = [ "format" ];

  postInstall = "aoeu";

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

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