aacgain: Use more up-to-date upstream repository.

Use more up-to-date upstream repostiory, which allows for a cleaner
build. It includes mp4v2 and faad, which will be built statically and
linked to the resulting binary.

authored by Robbin C and committed by Rok Garbas c07fb11c 681cbedd

+19 -46
+19 -46
pkgs/applications/audio/aacgain/default.nix
··· 1 - { stdenv, fetchFromGitHub, unzip, m4, libtool, automake, autoconf, mp3gain, mp4v2, faad2 }: 1 + { stdenv, fetchFromGitHub }: 2 2 3 3 stdenv.mkDerivation { 4 - name = "aacgain-1.9"; 5 - srcs = [ 6 - (fetchFromGitHub { 7 - owner = "mecke"; 8 - repo = "aacgain"; 9 - rev = "4a7d59d78eadbbd5413e905af8f91fe9184ce7a8"; 10 - sha256 = "0y25avgmm1xpbggvkhby1a7v9wmhsp3wmp74q06sf8ph8xsfajw4"; 11 - }) 12 - mp3gain.src 13 - mp4v2.src 14 - faad2.src 15 - ]; 4 + name = "aacgain-1.9.0"; 5 + src = fetchFromGitHub { 6 + owner = "mulx"; 7 + repo = "aacgain"; 8 + rev = "7c29dccd878ade1301710959aeebe87a8f0828f5"; 9 + sha256 = "07hl432vsscqg01b6wr99qmsj4gbx0i02x4k565432y6zpfmaxm0"; 10 + }; 16 11 17 - buildInputs = [ unzip m4 libtool automake autoconf ]; 18 - 19 - setSourceRoot = "sourceRoot=`pwd`"; 12 + configurePhase = '' 13 + cd mp4v2 14 + ./configure 20 15 21 - postUnpack = '' 22 - cd $sourceRoot 23 - # mp3gain does not unzip to its own directory, so move files accordingly. 24 - mkdir mp3gain 25 - find . -type f -maxdepth 1 -exec mv {} mp3gain/ \; 26 - mv mpglibDBL mp3gain/ 27 - 28 - mv aacgain-* aacgain 29 - mv faad2-* faad2 30 - mv mp4v2-* mp4v2 31 - ''; 32 - 33 - patchPhase = '' 34 - cd $sourceRoot 35 - patch -p2 -N < aacgain/linux/mp3gain.patch 36 - ''; 37 - 38 - configurePhase = '' 39 - cd $sourceRoot/mp4v2 16 + cd ../faad2 40 17 ./configure 41 18 42 - cd $sourceRoot/faad2 19 + cd .. 43 20 ./configure 44 21 ''; 45 22 46 23 buildPhase = '' 47 - cd $sourceRoot/mp4v2 24 + cd mp4v2 48 25 make libmp4v2.la 49 26 50 - cd $sourceRoot/faad2/libfaad 51 - make 27 + cd ../faad2 28 + make LDFLAGS=-static 52 29 53 - cd $sourceRoot/aacgain/linux 54 - sh prepare.sh 55 - mkdir build 56 - cd build 57 - ../../../configure 58 - make 30 + cd .. 31 + make 59 32 ''; 60 33 61 34 installPhase = '' ··· 65 38 66 39 meta = { 67 40 description = "ReplayGain for AAC files"; 68 - homepage = https://github.com/mecke/aacgain.git; 41 + homepage = https://github.com/mulx/aacgain; 69 42 license = stdenv.lib.licenses.gpl2; 70 43 platforms = stdenv.lib.platforms.linux; 71 44 maintainers = [ stdenv.lib.maintainers.robbinch ];