2021-01-15 05:42:41 +00:00
|
|
|
{ lib, stdenv, fetchurl, snack, tcl, tk, makeWrapper }:
|
2010-07-28 12:55:54 +01:00
|
|
|
|
2021-11-07 20:29:51 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "wavesurfer";
|
|
|
|
version = "1.8.5";
|
2008-09-24 01:42:06 +01:00
|
|
|
|
2010-07-28 12:55:54 +01:00
|
|
|
src = fetchurl {
|
2021-11-07 20:29:51 +00:00
|
|
|
url = "https://www.speech.kth.se/wavesurfer/wavesurfer-${version}.tar.gz";
|
2008-09-24 01:42:06 +01:00
|
|
|
sha256 = "1yx9s1j47cq0v40cwq2gn7bdizpw46l95ba4zl9z4gg31mfvm807";
|
|
|
|
};
|
|
|
|
|
2021-02-07 09:17:39 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
buildInputs = [ snack tcl tk ];
|
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" \
|
2021-01-15 05:42:41 +00:00
|
|
|
--prefix PATH : "${lib.makeBinPath [ tcl tk ]}"
|
2008-09-24 01:42:06 +01:00
|
|
|
'';
|
|
|
|
|
2020-06-26 09:49:33 +01:00
|
|
|
meta = {
|
2010-07-28 12:55:54 +01:00
|
|
|
description = "Tool for recording, playing, editing, viewing and labeling of audio";
|
2021-07-31 18:01:50 +01:00
|
|
|
homepage = "https://www.speech.kth.se/wavesurfer/";
|
2021-01-15 05:42:41 +00:00
|
|
|
license = lib.licenses.bsd0;
|
2008-09-24 01:42:06 +01:00
|
|
|
};
|
|
|
|
}
|