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