added wavesurfer (sound analysis tool) and its dependency snack (tcl /python sound tool library)
svn path=/nixpkgs/trunk/; revision=12904
This commit is contained in:
parent
49de4abefa
commit
32e2dbf87f
27
pkgs/applications/misc/audio/wavesurfer/default.nix
Normal file
27
pkgs/applications/misc/audio/wavesurfer/default.nix
Normal file
@ -0,0 +1,27 @@
|
||||
args:
|
||||
args.stdenv.mkDerivation {
|
||||
name = "wavesurfer-1.8.5";
|
||||
|
||||
src = args.fetchurl {
|
||||
url = http://www.speech.kth.se/wavesurfer/wavesurfer-1.8.5.tar.gz;
|
||||
sha256 = "1yx9s1j47cq0v40cwq2gn7bdizpw46l95ba4zl9z4gg31mfvm807";
|
||||
};
|
||||
|
||||
buildInputs =(with args; [snack tcl tk makeWrapper]);
|
||||
|
||||
installPhase = ''
|
||||
ensureDir $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 "${args.snack}/lib" \
|
||||
--prefix PATH : "${args.tcl}/bin:${args.tk}/bin"
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "tool for recording, playing, editing, viewing and labeling of audio";
|
||||
homepage = http://www.speech.kth.se/wavesurfer/;
|
||||
license = "BSD";
|
||||
};
|
||||
}
|
30
pkgs/development/libraries/snack/default.nix
Normal file
30
pkgs/development/libraries/snack/default.nix
Normal file
@ -0,0 +1,30 @@
|
||||
# alsaLib vorbisTools python can be made optional
|
||||
|
||||
args:
|
||||
args.stdenv.mkDerivation {
|
||||
name = "snack-2.2.10";
|
||||
|
||||
src = args.fetchurl {
|
||||
url = http://www.speech.kth.se/snack/dist/snack2.2.10.tar.gz;
|
||||
sha256 = "07p89jv9qnjqkszws9sssq93ayvwpdnkcxrvyicbm4mb8x2pdzjb";
|
||||
};
|
||||
|
||||
configureFlags = "--with-tcl=${args.tcl}/lib --with-tk=${args.tk}/lib";
|
||||
|
||||
postUnpack=''sourceRoot="$sourceRoot/unix"'';
|
||||
|
||||
buildInputs =(with args; [python tcl tk vorbisTools pkgconfig x11]);
|
||||
|
||||
postInstall="aoeu";
|
||||
|
||||
installPhase=''
|
||||
ensureDir $out
|
||||
make install DESTDIR="$out"
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "The Snack Sound Toolkit (Tcl)";
|
||||
homepage = "http://www.speech.kth.se/snack/";
|
||||
license = "GPL-2";
|
||||
};
|
||||
}
|
@ -3543,6 +3543,12 @@ let
|
||||
inherit fetchurl stdenv pcre libpng;
|
||||
};
|
||||
|
||||
snack = import ../development/libraries/snack {
|
||||
inherit fetchurl stdenv tcl tk pkgconfig x11;
|
||||
# optional
|
||||
inherit alsaLib vorbisTools python;
|
||||
};
|
||||
|
||||
speex = import ../development/libraries/speex {
|
||||
inherit fetchurl stdenv libogg;
|
||||
};
|
||||
@ -6137,6 +6143,10 @@ let
|
||||
inherit stdenv fetchurl openssl;
|
||||
};
|
||||
|
||||
wavesurfer = import ../applications/misc/audio/wavesurfer {
|
||||
inherit fetchurl stdenv tcl tk snack makeWrapper;
|
||||
};
|
||||
|
||||
wireshark = import ../applications/networking/sniffers/wireshark {
|
||||
inherit fetchurl stdenv perl pkgconfig libpcap flex bison;
|
||||
inherit (gtkLibs) gtk;
|
||||
|
Loading…
Reference in New Issue
Block a user