mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 04:43:09 +03:00
caudec: adds new package
This commit is contained in:
parent
7ff9cd2c41
commit
e2bfd40083
39
pkgs/applications/audio/caudec/default.nix
Normal file
39
pkgs/applications/audio/caudec/default.nix
Normal file
@ -0,0 +1,39 @@
|
||||
{ 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";
|
||||
};
|
||||
|
||||
preBuild = ''
|
||||
patchShebangs ./install.sh
|
||||
'';
|
||||
|
||||
buildInputs = [ bash makeWrapper ];
|
||||
|
||||
installPhase = ''
|
||||
./install.sh --prefix=$out/bin
|
||||
'';
|
||||
|
||||
postFixup = ''
|
||||
for executable in $(cd $out/bin && ls); do
|
||||
wrapProgram $out/bin/$executable \
|
||||
--prefix PATH : "${bc}/bin:${findutils}/bin:${sox}/bin:${procps}/bin:${opusTools}/bin:${lame}/bin:${flac}/bin"
|
||||
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;
|
||||
maintainers = with maintainers; [ _1126 ];
|
||||
};
|
||||
}
|
@ -799,6 +799,8 @@ let
|
||||
|
||||
can-utils = callPackage ../os-specific/linux/can-utils { };
|
||||
|
||||
caudec = callPackage ../applications/audio/caudec { };
|
||||
|
||||
ccid = callPackage ../tools/security/ccid { };
|
||||
|
||||
ccrypt = callPackage ../tools/security/ccrypt { };
|
||||
|
Loading…
Reference in New Issue
Block a user