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