2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchurl, makeWrapper, bash, bc, findutils, flac, lame, opusTools, procps, sox }:
|
2014-11-13 13:56:12 +00:00
|
|
|
|
2022-01-07 06:55:27 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-13 22:52:01 +01:00
|
|
|
pname = "caudec";
|
2022-01-07 06:55:27 +00:00
|
|
|
version = "1.7.5";
|
2014-11-13 13:56:12 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2022-01-07 06:55:27 +00:00
|
|
|
url = "http://caudec.cocatre.net/downloads/caudec-${version}.tar.gz";
|
2014-11-13 13:56:12 +00:00
|
|
|
sha256 = "5d1f5ab3286bb748bd29cbf45df2ad2faf5ed86070f90deccf71c60be832f3d5";
|
|
|
|
};
|
|
|
|
|
2015-01-08 09:26:49 +00:00
|
|
|
preBuild = ''
|
|
|
|
patchShebangs ./install.sh
|
|
|
|
'';
|
|
|
|
|
2021-02-07 09:17:39 +00:00
|
|
|
nativeBuildInputs = [ bash makeWrapper ];
|
2014-11-13 13:56:12 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
./install.sh --prefix=$out/bin
|
|
|
|
'';
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
for executable in $(cd $out/bin && ls); do
|
2021-01-15 13:21:58 +00:00
|
|
|
wrapProgram $out/bin/$executable \
|
|
|
|
--prefix PATH : "${lib.makeBinPath [ bc findutils sox procps opusTools lame flac ]}"
|
2014-11-13 13:56:12 +00:00
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2022-01-07 06:55:27 +00:00
|
|
|
homepage = "https://caudec.cocatre.net/";
|
2014-11-13 13:56:12 +00:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|