nixpkgs/pkgs/development/libraries/snack/default.nix
Ben Siraphob 2f94991628 treewide: fix redirected URLs
Using the script in maintainers/scripts/update-redirected-urls.sh
2021-08-01 00:01:50 +07:00

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