Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 57 lines 1.1 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 makeWrapper, 6 bc, 7 findutils, 8 flac, 9 lame, 10 opusTools, 11 procps, 12 sox, 13}: 14 15stdenv.mkDerivation rec { 16 pname = "caudec"; 17 version = "1.7.5"; 18 19 src = fetchurl { 20 url = "http://caudec.cocatre.net/downloads/caudec-${version}.tar.gz"; 21 sha256 = "5d1f5ab3286bb748bd29cbf45df2ad2faf5ed86070f90deccf71c60be832f3d5"; 22 }; 23 24 preBuild = '' 25 patchShebangs ./install.sh 26 ''; 27 28 nativeBuildInputs = [ makeWrapper ]; 29 30 installPhase = '' 31 ./install.sh --prefix=$out/bin 32 ''; 33 34 postFixup = '' 35 for executable in $(cd $out/bin && ls); do 36 wrapProgram $out/bin/$executable \ 37 --prefix PATH : "${ 38 lib.makeBinPath [ 39 bc 40 findutils 41 sox 42 procps 43 opusTools 44 lame 45 flac 46 ] 47 }" 48 done 49 ''; 50 51 meta = with lib; { 52 homepage = "https://caudec.cocatre.net/"; 53 description = "Multiprocess audio converter that supports many formats (FLAC, MP3, Ogg Vorbis, Windows codecs and many more)"; 54 license = licenses.gpl3; 55 platforms = platforms.linux ++ platforms.darwin; 56 }; 57}