3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/misc/audio/wavesurfer/default.nix

31 lines
929 B
Nix
Raw Normal View History

2021-01-15 05:42:41 +00:00
{ lib, stdenv, fetchurl, snack, tcl, tk, makeWrapper }:
stdenv.mkDerivation rec {
pname = "wavesurfer";
version = "1.8.5";
src = fetchurl {
url = "https://www.speech.kth.se/wavesurfer/wavesurfer-${version}.tar.gz";
sha256 = "1yx9s1j47cq0v40cwq2gn7bdizpw46l95ba4zl9z4gg31mfvm807";
};
nativeBuildInputs = [ makeWrapper ];
buildInputs = [ snack tcl tk ];
installPhase = ''
mkdir -p $out/{bin,nix-support,share/wavesurfer/}
mv doc $out/share/wavesurfer
mv * $out/nix-support
ln -s $out/{nix-support,bin}/wavesurfer.tcl
wrapProgram "$out/nix-support/wavesurfer.tcl" \
--set TCLLIBPATH "${snack}/lib" \
2021-01-15 05:42:41 +00:00
--prefix PATH : "${lib.makeBinPath [ tcl tk ]}"
'';
2020-06-26 09:49:33 +01:00
meta = {
description = "Tool for recording, playing, editing, viewing and labeling of audio";
homepage = "https://www.speech.kth.se/wavesurfer/";
2021-01-15 05:42:41 +00:00
license = lib.licenses.bsd0;
};
}