nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1# alsa-lib vorbis-tools python can be made optional
2
3{ lib, stdenv, fetchurl, python, tcl, tk, vorbis-tools, pkg-config, xlibsWrapper }:
4
5stdenv.mkDerivation rec {
6 pname = "snack";
7 version = "2.2.10";
8
9 src = fetchurl {
10 url = "https://www.speech.kth.se/snack/dist/${pname}${version}.tar.gz";
11 sha256 = "07p89jv9qnjqkszws9sssq93ayvwpdnkcxrvyicbm4mb8x2pdzjb";
12 };
13
14 configureFlags = [ "--with-tcl=${tcl}/lib" "--with-tk=${tk}/lib" ];
15
16 postUnpack = ''sourceRoot="$sourceRoot/unix"'';
17
18 nativeBuildInputs = [ pkg-config ];
19 buildInputs = [ python tcl tk vorbis-tools xlibsWrapper ];
20
21 hardeningDisable = [ "format" ];
22
23 postInstall = "aoeu";
24
25 installPhase = ''
26 mkdir -p $out
27 make install DESTDIR="$out"
28 '';
29
30 meta = {
31 description = "The Snack Sound Toolkit (Tcl)";
32 homepage = "https://www.speech.kth.se/snack/";
33 license = lib.licenses.gpl2;
34 broken = true;
35 };
36}