2021-06-28 23:13:55 +00:00
|
|
|
# alsa-lib vorbis-tools python can be made optional
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, python, tcl, tk, vorbis-tools, pkg-config, xlibsWrapper }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "snack-2.2.10";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://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"'';
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ python tcl tk vorbis-tools xlibsWrapper ];
|
|
|
|
|
|
|
|
hardeningDisable = [ "format" ];
|
|
|
|
|
|
|
|
postInstall = "aoeu";
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out
|
2021-02-05 17:12:51 +00:00
|
|
|
make install DESTDIR="$out"
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "The Snack Sound Toolkit (Tcl)";
|
|
|
|
homepage = "http://www.speech.kth.se/snack/";
|
2021-02-05 17:12:51 +00:00
|
|
|
license = lib.licenses.gpl2;
|
2020-04-24 23:36:52 +00:00
|
|
|
broken = true;
|
|
|
|
};
|
|
|
|
}
|