diff options
author | _1126 <mail@elfsechsundzwanzig.de> | 2014-11-13 14:56:12 +0100 |
---|---|---|
committer | _1126 <mail@elfsechsundzwanzig.de> | 2014-11-13 17:32:23 +0100 |
commit | e2bfd4008311b4a9fb48604105df87ddb62d2c4c (patch) | |
tree | 28dcbbd7f4c9d8273b853b49e53695fc59b12fd6 /pkgs/applications/audio/caudec | |
parent | 7ff9cd2c41558c050164c3fe494d8b0a13e612f4 (diff) |
caudec: adds new package
Diffstat (limited to 'pkgs/applications/audio/caudec')
-rw-r--r-- | pkgs/applications/audio/caudec/default.nix | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/pkgs/applications/audio/caudec/default.nix b/pkgs/applications/audio/caudec/default.nix new file mode 100644 index 0000000000000..24613d4dd9655 --- /dev/null +++ b/pkgs/applications/audio/caudec/default.nix @@ -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 ]; + }; +} |