2022-12-03 01:59:06 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, autoconf
|
|
|
|
, automake
|
|
|
|
, libtool
|
|
|
|
, faad2
|
|
|
|
, mp4v2
|
|
|
|
}:
|
2015-06-09 09:07:11 +00:00
|
|
|
|
2021-06-20 10:34:30 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "aacgain";
|
2022-12-03 01:59:06 +00:00
|
|
|
version = "2.0.0";
|
2016-02-08 15:43:12 +00:00
|
|
|
|
2022-12-03 01:59:06 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dgilman";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
sha256 = "sha256-9Y23Zh7q3oB4ha17Fpm1Hu2+wtQOA1llj6WDUAO2ARU=";
|
2015-06-10 16:12:46 +00:00
|
|
|
};
|
2015-06-09 09:07:11 +00:00
|
|
|
|
2018-02-27 17:36:18 +00:00
|
|
|
postPatch = ''
|
2022-12-03 01:59:06 +00:00
|
|
|
cp -R ${faad2.src}/* 3rdparty/faad2
|
|
|
|
cp -R ${mp4v2.src}/* 3rdparty/mp4v2
|
|
|
|
chmod -R +w 3rdparty
|
2015-06-09 09:07:11 +00:00
|
|
|
'';
|
|
|
|
|
2022-12-03 01:59:06 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
autoconf
|
|
|
|
automake
|
|
|
|
libtool
|
|
|
|
];
|
2015-06-09 09:07:11 +00:00
|
|
|
|
2023-02-19 19:23:32 +00:00
|
|
|
env.NIX_CFLAGS_COMPILE = "-Wno-error=narrowing";
|
2015-06-09 09:07:11 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2015-06-09 09:07:11 +00:00
|
|
|
description = "ReplayGain for AAC files";
|
2022-12-03 01:59:06 +00:00
|
|
|
homepage = "https://github.com/dgilman/aacgain";
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.unix;
|
2018-02-27 17:36:18 +00:00
|
|
|
maintainers = [ maintainers.robbinch ];
|
2015-06-09 09:07:11 +00:00
|
|
|
};
|
|
|
|
}
|