aacgain: 1.9.0 -> 2.0.0
This commit is contained in:
parent
b3600b548e
commit
c27f6444ac
|
@ -1,68 +1,45 @@
|
||||||
{ lib, stdenv, fetchFromGitLab, fetchpatch }:
|
{ lib
|
||||||
|
, stdenv
|
||||||
|
, fetchFromGitHub
|
||||||
|
, cmake
|
||||||
|
, autoconf
|
||||||
|
, automake
|
||||||
|
, libtool
|
||||||
|
, faad2
|
||||||
|
, mp4v2
|
||||||
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "aacgain";
|
pname = "aacgain";
|
||||||
version = "1.9.0";
|
version = "2.0.0";
|
||||||
|
|
||||||
src = fetchFromGitLab {
|
src = fetchFromGitHub {
|
||||||
owner = "mulx";
|
owner = "dgilman";
|
||||||
repo = "aacgain";
|
repo = pname;
|
||||||
rev = "7c29dccd878ade1301710959aeebe87a8f0828f5";
|
rev = version;
|
||||||
sha256 = "07hl432vsscqg01b6wr99qmsj4gbx0i02x4k565432y6zpfmaxm0";
|
sha256 = "sha256-9Y23Zh7q3oB4ha17Fpm1Hu2+wtQOA1llj6WDUAO2ARU=";
|
||||||
};
|
};
|
||||||
|
|
||||||
hardeningDisable = [ "format" ];
|
|
||||||
|
|
||||||
# -Wnarrowing is enabled by default in recent GCC versions,
|
|
||||||
# causing compilation to fail.
|
|
||||||
NIX_CFLAGS_COMPILE = "-Wno-narrowing";
|
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
(
|
cp -R ${faad2.src}/* 3rdparty/faad2
|
||||||
cd mp4v2
|
cp -R ${mp4v2.src}/* 3rdparty/mp4v2
|
||||||
patch -p0 < ${fetchpatch {
|
chmod -R +w 3rdparty
|
||||||
name = "fix_missing_ptr_deref.patch";
|
|
||||||
url = "https://aur.archlinux.org/cgit/aur.git/plain/fix_missing_ptr_deref.patch?h=aacgain-cvs&id=e1a19c920f57063e64bab75cb0d8624731f6e3d7";
|
|
||||||
sha256 = "1cq7r005nvmwdjb25z80grcam7jv6k57jnl2bh349mg3ajmslbq9";
|
|
||||||
}}
|
|
||||||
)
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
configurePhase = ''
|
nativeBuildInputs = [
|
||||||
runHook preConfigure
|
cmake
|
||||||
cd mp4v2
|
autoconf
|
||||||
./configure
|
automake
|
||||||
|
libtool
|
||||||
|
];
|
||||||
|
|
||||||
cd ../faad2
|
NIX_CFLAGS_COMPILE = "-Wno-error=narrowing";
|
||||||
./configure
|
|
||||||
|
|
||||||
cd ..
|
|
||||||
./configure
|
|
||||||
runHook postConfigure
|
|
||||||
'';
|
|
||||||
|
|
||||||
buildPhase = ''
|
|
||||||
runHook preBuild
|
|
||||||
cd mp4v2
|
|
||||||
make libmp4v2.la
|
|
||||||
|
|
||||||
cd ../faad2
|
|
||||||
make LDFLAGS=-static
|
|
||||||
|
|
||||||
cd ..
|
|
||||||
make
|
|
||||||
runHook postBuild
|
|
||||||
'';
|
|
||||||
|
|
||||||
installPhase = ''
|
|
||||||
install -D aacgain/aacgain "$out/bin/aacgain"
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "ReplayGain for AAC files";
|
description = "ReplayGain for AAC files";
|
||||||
homepage = "https://aacgain.altosdesign.com";
|
homepage = "https://github.com/dgilman/aacgain";
|
||||||
license = licenses.gpl2;
|
license = licenses.gpl2Plus;
|
||||||
platforms = platforms.linux;
|
platforms = platforms.unix;
|
||||||
maintainers = [ maintainers.robbinch ];
|
maintainers = [ maintainers.robbinch ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue