2022-04-27 09:35:20 +00:00
|
|
|
{ lib, stdenv, fetchurl, makeWrapper, bc, findutils, flac, lame, opusTools, procps, sox }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-01-13 20:06:32 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "caudec";
|
2022-01-13 20:06:32 +00:00
|
|
|
version = "1.7.5";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2022-01-13 20:06:32 +00:00
|
|
|
url = "http://caudec.cocatre.net/downloads/caudec-${version}.tar.gz";
|
2020-04-24 23:36:52 +00:00
|
|
|
sha256 = "5d1f5ab3286bb748bd29cbf45df2ad2faf5ed86070f90deccf71c60be832f3d5";
|
|
|
|
};
|
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
patchShebangs ./install.sh
|
|
|
|
'';
|
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
./install.sh --prefix=$out/bin
|
|
|
|
'';
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
for executable in $(cd $out/bin && ls); do
|
2021-01-17 00:15:33 +00:00
|
|
|
wrapProgram $out/bin/$executable \
|
|
|
|
--prefix PATH : "${lib.makeBinPath [ bc findutils sox procps opusTools lame flac ]}"
|
2020-04-24 23:36:52 +00:00
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2022-01-13 20:06:32 +00:00
|
|
|
homepage = "https://caudec.cocatre.net/";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Multiprocess audio converter that supports many formats (FLAC, MP3, Ogg Vorbis, Windows codecs and many more)";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
|
|
|
};
|
|
|
|
}
|