2010-07-28 13:55:54 +02:00
|
|
|
{ stdenv, fetchurl, snack, tcl, tk, makeWrapper }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2008-09-24 02:42:06 +02:00
|
|
|
name = "wavesurfer-1.8.5";
|
|
|
|
|
2010-07-28 13:55:54 +02:00
|
|
|
src = fetchurl {
|
2020-04-01 03:11:51 +02:00
|
|
|
url = "https://www.speech.kth.se/wavesurfer/wavesurfer-1.8.5.tar.gz";
|
2008-09-24 02:42:06 +02:00
|
|
|
sha256 = "1yx9s1j47cq0v40cwq2gn7bdizpw46l95ba4zl9z4gg31mfvm807";
|
|
|
|
};
|
|
|
|
|
2010-07-28 13:55:54 +02:00
|
|
|
buildInputs = [ snack tcl tk makeWrapper ];
|
2008-09-24 02:42:06 +02:00
|
|
|
|
|
|
|
installPhase = ''
|
2012-01-18 21:16:00 +01:00
|
|
|
mkdir -p $out/{bin,nix-support,share/wavesurfer/}
|
2008-09-24 02:42:06 +02:00
|
|
|
mv doc $out/share/wavesurfer
|
|
|
|
mv * $out/nix-support
|
|
|
|
ln -s $out/{nix-support,bin}/wavesurfer.tcl
|
|
|
|
wrapProgram "$out/nix-support/wavesurfer.tcl" \
|
2010-07-28 13:55:54 +02:00
|
|
|
--set TCLLIBPATH "${snack}/lib" \
|
2016-08-23 00:06:51 +02:00
|
|
|
--prefix PATH : "${stdenv.lib.makeBinPath [ tcl tk ]}"
|
2008-09-24 02:42:06 +02:00
|
|
|
'';
|
|
|
|
|
2020-06-26 10:49:33 +02:00
|
|
|
meta = {
|
2010-07-28 13:55:54 +02:00
|
|
|
description = "Tool for recording, playing, editing, viewing and labeling of audio";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://www.speech.kth.se/wavesurfer/";
|
2020-06-26 10:49:33 +02:00
|
|
|
license = stdenv.lib.licenses.bsd0;
|
2008-09-24 02:42:06 +02:00
|
|
|
};
|
|
|
|
}
|