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