git.iko.soy/typeable/nixpkgs
on master help sign in
caudec: adds new package
commite2bfd4008311b4a9fb48604105df87ddb62d2c4c author_1126 <mail@elfsechsundzwanzig.de> dateThu 13 Nov 2014, 14:56 (12 years ago) parent7ff9cd2
2 files changed+41
pkgs/applications/audio/caudec/default.nix+39 pkgs/top-level/all-packages.nix+2
pkgs/applications/audio/caudec/default.nixnew file+39
@@ -0,0 +1,39 @@
1+{ stdenv, fetchurl, makeWrapper, bash, bc, findutils, flac, lame, opusTools, procps, sox }:
2+
3+let
4+ version = "1.7.5";
5+in
6+
7+stdenv.mkDerivation rec {
8+ name = "caudec-${version}";
9+
10+ src = fetchurl {
11+ url = "http://caudec.net/downloads/caudec-${version}.tar.gz";
12+ sha256 = "5d1f5ab3286bb748bd29cbf45df2ad2faf5ed86070f90deccf71c60be832f3d5";
13+ };
14+
15+ preBuild = ''
16+ patchShebangs ./install.sh
17+ '';
18+
19+ buildInputs = [ bash makeWrapper ];
20+
21+ installPhase = ''
22+ ./install.sh --prefix=$out/bin
23+ '';
24+
25+ postFixup = ''
26+ for executable in $(cd $out/bin && ls); do
27+ wrapProgram $out/bin/$executable \
28+ --prefix PATH : "${bc}/bin:${findutils}/bin:${sox}/bin:${procps}/bin:${opusTools}/bin:${lame}/bin:${flac}/bin"
29+ done
30+ '';
31+
32+ meta = with stdenv.lib; {
33+ homepage = http://caudec.net/;
34+ description = "A multiprocess audio converter that supports many formats (FLAC, MP3, Ogg Vorbis, Windows codecs and many more)";
35+ license = licenses.gpl3;
36+ platforms = platforms.linux ++ platforms.darwin;
37+ maintainers = with maintainers; [ _1126 ];
38+ };
39+}
pkgs/top-level/all-packages.nix+2
@@ -799,6 +799,8 @@ let
799799
800800 can-utils = callPackage ../os-specific/linux/can-utils { };
801801
802+ caudec = callPackage ../applications/audio/caudec { };
803+
802804 ccid = callPackage ../tools/security/ccid { };
803805
804806 ccrypt = callPackage ../tools/security/ccrypt { };