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