aacgain: Add package.

This adds aacgain which is a normalizer for AAC (.m4a) audio files.

authored by Robbin C and committed by Rok Garbas dbac15d6 399b5496

+74
+72
pkgs/applications/audio/aacgain/default.nix
··· 1 + { stdenv, fetchgit, unzip, m4, libtool, automake, autoconf, mp3gain, mp4v2, faad2 }: 2 + 3 + stdenv.mkDerivation { 4 + name = "aacgain-1.9"; 5 + srcs = [ 6 + (fetchgit { 7 + url = "https://github.com/mecke/aacgain.git"; 8 + rev = "4a7d59d78eadbbd5413e905af8f91fe9184ce7a8"; 9 + sha256 = "0y25avgmm1xpbggvkhby1a7v9wmhsp3wmp74q06sf8ph8xsfajw4"; 10 + }) 11 + mp3gain.src 12 + mp4v2.src 13 + faad2.src 14 + ]; 15 + 16 + buildInputs = [ unzip m4 libtool automake autoconf ]; 17 + 18 + setSourceRoot = "sourceRoot=`pwd`"; 19 + 20 + postUnpack = '' 21 + cd $sourceRoot 22 + # mp3gain does not unzip to its own directory, so move files accordingly. 23 + mkdir mp3gain 24 + find . -type f -maxdepth 1 -exec mv {} mp3gain/ \; 25 + mv mpglibDBL mp3gain/ 26 + 27 + mv aacgain-* aacgain 28 + mv faad2-* faad2 29 + mv mp4v2-* mp4v2 30 + ''; 31 + 32 + patchPhase = '' 33 + cd $sourceRoot 34 + patch -p2 -N < aacgain/linux/mp3gain.patch 35 + ''; 36 + 37 + configurePhase = '' 38 + cd $sourceRoot/mp4v2 39 + ./configure 40 + 41 + cd $sourceRoot/faad2 42 + ./configure 43 + ''; 44 + 45 + buildPhase = '' 46 + cd $sourceRoot/mp4v2 47 + make libmp4v2.la 48 + 49 + cd $sourceRoot/faad2/libfaad 50 + make 51 + 52 + cd $sourceRoot/aacgain/linux 53 + sh prepare.sh 54 + mkdir build 55 + cd build 56 + ../../../configure 57 + make 58 + ''; 59 + 60 + installPhase = '' 61 + strip -s aacgain/aacgain 62 + install -vD aacgain/aacgain "$out/bin/aacgain" 63 + ''; 64 + 65 + meta = { 66 + description = "ReplayGain for AAC files"; 67 + homepage = https://github.com/mecke/aacgain.git; 68 + license = stdenv.lib.licenses.gpl2; 69 + platforms = stdenv.lib.platforms.linux; 70 + maintainers = [ stdenv.lib.maintainers.robbinch ]; 71 + }; 72 + }
+2
pkgs/top-level/all-packages.nix
··· 10404 10404 10405 10405 a2jmidid = callPackage ../applications/audio/a2jmidid { }; 10406 10406 10407 + aacgain = callPackage ../applications/audio/aacgain { }; 10408 + 10407 10409 aangifte2006 = callPackage_i686 ../applications/taxes/aangifte-2006 { }; 10408 10410 10409 10411 aangifte2007 = callPackage_i686 ../applications/taxes/aangifte-2007 { };