depot/third_party/nixpkgs/pkgs/development/libraries/snack/default.nix
Default email a3bb8d7922 Project import generated by Copybara.
GitOrigin-RevId: 439b1605227b8adb1357b55ce8529d541abbe9eb
2021-08-06 00:33:18 +03:00

36 lines
908 B
Nix

# 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;
};
}