parent
187764481b
commit
49efe74808
@ -1,30 +0,0 @@ |
||||
{ 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" \ |
||||
--prefix PATH : "${lib.makeBinPath [ tcl tk ]}" |
||||
''; |
||||
|
||||
meta = { |
||||
description = "Tool for recording, playing, editing, viewing and labeling of audio"; |
||||
homepage = "https://www.speech.kth.se/wavesurfer/"; |
||||
license = lib.licenses.bsd0; |
||||
}; |
||||
} |
@ -1,36 +0,0 @@ |
||||
# alsa-lib vorbis-tools python2 can be made optional |
||||
|
||||
{ lib, stdenv, fetchurl, python2, tcl, tk, vorbis-tools, pkg-config, xlibsWrapper }: |
||||
|
||||
stdenv.mkDerivation rec { |
||||
pname = "snack"; |
||||
version = "2.2.10"; |
||||
|
||||
src = fetchurl { |
||||
url = "https://www.speech.kth.se/snack/dist/${pname}${version}.tar.gz"; |
||||
sha256 = "07p89jv9qnjqkszws9sssq93ayvwpdnkcxrvyicbm4mb8x2pdzjb"; |
||||
}; |
||||
|
||||
configureFlags = [ "--with-tcl=${tcl}/lib" "--with-tk=${tk}/lib" ]; |
||||
|
||||
postUnpack = ''sourceRoot="$sourceRoot/unix"''; |
||||
|
||||
nativeBuildInputs = [ pkg-config ]; |
||||
buildInputs = [ python2 tcl tk vorbis-tools xlibsWrapper ]; |
||||
|
||||
hardeningDisable = [ "format" ]; |
||||
|
||||
postInstall = "aoeu"; |
||||
|
||||
installPhase = '' |
||||
mkdir -p $out |
||||
make install DESTDIR="$out" |
||||
''; |
||||
|
||||
meta = { |
||||
description = "The Snack Sound Toolkit (Tcl)"; |
||||
homepage = "https://www.speech.kth.se/snack/"; |
||||
license = lib.licenses.gpl2; |
||||
broken = true; |
||||
}; |
||||
} |
Loading…
Reference in new issue