2016-01-25 23:53:13 +00:00
|
|
|
# alsaLib vorbis-tools python can be made optional
|
2008-09-24 01:42:06 +01:00
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, fetchurl, python, tcl, tk, vorbis-tools, pkg-config, xlibsWrapper }:
|
2010-07-30 15:47:23 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2008-09-24 01:42:06 +01:00
|
|
|
name = "snack-2.2.10";
|
|
|
|
|
2010-07-30 15:47:23 +01:00
|
|
|
src = fetchurl {
|
2020-04-01 02:11:51 +01:00
|
|
|
url = "https://www.speech.kth.se/snack/dist/snack2.2.10.tar.gz";
|
2008-09-24 01:42:06 +01:00
|
|
|
sha256 = "07p89jv9qnjqkszws9sssq93ayvwpdnkcxrvyicbm4mb8x2pdzjb";
|
|
|
|
};
|
|
|
|
|
2018-07-25 22:44:21 +01:00
|
|
|
configureFlags = [ "--with-tcl=${tcl}/lib" "--with-tk=${tk}/lib" ];
|
2008-09-24 01:42:06 +01:00
|
|
|
|
2010-07-30 15:47:23 +01:00
|
|
|
postUnpack = ''sourceRoot="$sourceRoot/unix"'';
|
2008-09-24 01:42:06 +01:00
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2017-09-05 22:26:13 +01:00
|
|
|
buildInputs = [ python tcl tk vorbis-tools xlibsWrapper ];
|
2008-09-24 01:42:06 +01:00
|
|
|
|
2016-12-05 00:09:18 +00:00
|
|
|
hardeningDisable = [ "format" ];
|
|
|
|
|
2010-07-30 15:47:23 +01:00
|
|
|
postInstall = "aoeu";
|
2008-09-24 01:42:06 +01:00
|
|
|
|
2010-07-30 15:47:23 +01:00
|
|
|
installPhase = ''
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p $out
|
2021-01-21 00:55:55 +00:00
|
|
|
make install DESTDIR="$out"
|
2008-09-24 01:42:06 +01:00
|
|
|
'';
|
|
|
|
|
2021-01-21 00:55:55 +00:00
|
|
|
meta = {
|
2010-07-30 15:47:23 +01:00
|
|
|
description = "The Snack Sound Toolkit (Tcl)";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://www.speech.kth.se/snack/";
|
2021-01-21 17:00:13 +00:00
|
|
|
license = lib.licenses.gpl2;
|
2016-12-05 00:09:18 +00:00
|
|
|
broken = true;
|
2008-09-24 01:42:06 +01:00
|
|
|
};
|
|
|
|
}
|