2014-11-13 13:56:12 +00:00
|
|
|
{ stdenv, fetchurl, makeWrapper, bash, bc, findutils, flac, lame, opusTools, procps, sox }:
|
|
|
|
|
|
|
|
let
|
|
|
|
version = "1.7.5";
|
|
|
|
in
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "caudec-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://caudec.net/downloads/caudec-${version}.tar.gz";
|
|
|
|
sha256 = "5d1f5ab3286bb748bd29cbf45df2ad2faf5ed86070f90deccf71c60be832f3d5";
|
|
|
|
};
|
|
|
|
|
2015-01-08 09:26:49 +00:00
|
|
|
preBuild = ''
|
|
|
|
patchShebangs ./install.sh
|
|
|
|
'';
|
|
|
|
|
2014-11-13 13:56:12 +00:00
|
|
|
buildInputs = [ bash makeWrapper ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
./install.sh --prefix=$out/bin
|
|
|
|
'';
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
for executable in $(cd $out/bin && ls); do
|
|
|
|
wrapProgram $out/bin/$executable \
|
2016-08-22 23:06:51 +01:00
|
|
|
--prefix PATH : "${stdenv.lib.makeBinPath [ bc findutils sox procps opusTools lame flac ]}"
|
2014-11-13 13:56:12 +00:00
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = http://caudec.net/;
|
|
|
|
description = "A multiprocess audio converter that supports many formats (FLAC, MP3, Ogg Vorbis, Windows codecs and many more)";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
|
|
|
};
|
|
|
|
}
|