nixpkgs/pkgs/applications/audio/aacgain/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

46 lines
817 B
Nix
Raw Normal View History

2022-12-03 01:59:06 +00:00
{ lib
, stdenv
, fetchFromGitHub
, cmake
, autoconf
, automake
, libtool
, faad2
, mp4v2
}:
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=";
};
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
'';
2022-12-03 01:59:06 +00:00
nativeBuildInputs = [
cmake
autoconf
automake
libtool
];
env.NIX_CFLAGS_COMPILE = "-Wno-error=narrowing";
meta = with lib; {
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 ];
};
}