depot/third_party/nixpkgs/pkgs/applications/audio/aacgain/default.nix
Default email a66bca1520 Project import generated by Copybara.
GitOrigin-RevId: 40f79f003b6377bd2f4ed4027dde1f8f922995dd
2022-12-17 11:02:37 +01:00

45 lines
813 B
Nix

{ lib
, stdenv
, fetchFromGitHub
, cmake
, autoconf
, automake
, libtool
, faad2
, mp4v2
}:
stdenv.mkDerivation rec {
pname = "aacgain";
version = "2.0.0";
src = fetchFromGitHub {
owner = "dgilman";
repo = pname;
rev = version;
sha256 = "sha256-9Y23Zh7q3oB4ha17Fpm1Hu2+wtQOA1llj6WDUAO2ARU=";
};
postPatch = ''
cp -R ${faad2.src}/* 3rdparty/faad2
cp -R ${mp4v2.src}/* 3rdparty/mp4v2
chmod -R +w 3rdparty
'';
nativeBuildInputs = [
cmake
autoconf
automake
libtool
];
NIX_CFLAGS_COMPILE = "-Wno-error=narrowing";
meta = with lib; {
description = "ReplayGain for AAC files";
homepage = "https://github.com/dgilman/aacgain";
license = licenses.gpl2Plus;
platforms = platforms.unix;
maintainers = [ maintainers.robbinch ];
};
}