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