2015-06-10 19:12:46 +03:00
|
|
|
{ stdenv, fetchFromGitHub }:
|
2015-06-09 12:07:11 +03:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2015-06-10 19:12:46 +03:00
|
|
|
name = "aacgain-1.9.0";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mulx";
|
|
|
|
repo = "aacgain";
|
|
|
|
rev = "7c29dccd878ade1301710959aeebe87a8f0828f5";
|
|
|
|
sha256 = "07hl432vsscqg01b6wr99qmsj4gbx0i02x4k565432y6zpfmaxm0";
|
|
|
|
};
|
2015-06-09 12:07:11 +03:00
|
|
|
|
|
|
|
configurePhase = ''
|
2015-06-10 19:12:46 +03:00
|
|
|
cd mp4v2
|
|
|
|
./configure
|
|
|
|
|
|
|
|
cd ../faad2
|
2015-06-09 12:07:11 +03:00
|
|
|
./configure
|
|
|
|
|
2015-06-10 19:12:46 +03:00
|
|
|
cd ..
|
2015-06-09 12:07:11 +03:00
|
|
|
./configure
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildPhase = ''
|
2015-06-10 19:12:46 +03:00
|
|
|
cd mp4v2
|
2015-06-09 12:07:11 +03:00
|
|
|
make libmp4v2.la
|
|
|
|
|
2015-06-10 19:12:46 +03:00
|
|
|
cd ../faad2
|
|
|
|
make LDFLAGS=-static
|
2015-06-09 12:07:11 +03:00
|
|
|
|
2015-06-10 19:12:46 +03:00
|
|
|
cd ..
|
|
|
|
make
|
2015-06-09 12:07:11 +03:00
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
strip -s aacgain/aacgain
|
|
|
|
install -vD aacgain/aacgain "$out/bin/aacgain"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "ReplayGain for AAC files";
|
2015-06-10 19:12:46 +03:00
|
|
|
homepage = https://github.com/mulx/aacgain;
|
2015-06-09 12:07:11 +03:00
|
|
|
license = stdenv.lib.licenses.gpl2;
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.robbinch ];
|
|
|
|
};
|
|
|
|
}
|