2017-12-09 03:44:22 -08:00
|
|
|
{ stdenv, lib, fetchurl }:
|
2010-09-14 07:29:31 -07:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2017-02-22 16:04:26 -08:00
|
|
|
name = "mp4v2-2.0.0";
|
2010-09-14 07:29:31 -07:00
|
|
|
|
|
|
|
src = fetchurl {
|
2017-02-22 16:04:26 -08:00
|
|
|
url = "https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/mp4v2/${name}.tar.bz2";
|
|
|
|
sha256 = "0f438bimimsvxjbdp4vsr8hjw2nwggmhaxgcw07g2z361fkbj683";
|
2010-09-14 07:29:31 -07:00
|
|
|
};
|
2010-09-15 05:57:49 -07:00
|
|
|
|
2014-05-03 16:44:16 -07:00
|
|
|
patches = [
|
2018-02-18 05:33:37 -08:00
|
|
|
(fetchurl {
|
|
|
|
name = "gcc-7.patch";
|
|
|
|
url = "https://src.fedoraproject.org/cgit/rpms/libmp4v2.git/plain/"
|
|
|
|
+ "0004-Fix-GCC7-build.patch?id=d7aeedabb";
|
|
|
|
sha256 = "0sbn0il7lmk77yrjyb4f0a3z3h8gsmdkscvz5n9hmrrrhrwf672w";
|
|
|
|
})
|
2014-05-03 16:44:16 -07:00
|
|
|
];
|
2018-02-18 05:33:37 -08:00
|
|
|
|
2011-05-12 13:43:33 -07:00
|
|
|
# `faac' expects `mp4.h'.
|
|
|
|
postInstall = "ln -s mp4v2/mp4v2.h $out/include/mp4.h";
|
|
|
|
|
2016-02-26 09:38:15 -08:00
|
|
|
hardeningDisable = [ "format" ];
|
2016-02-10 17:00:03 -08:00
|
|
|
|
2017-12-09 03:44:22 -08:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2010-09-15 05:57:49 -07:00
|
|
|
meta = {
|
2017-10-26 16:44:19 -07:00
|
|
|
homepage = https://code.google.com/archive/p/mp4v2/;
|
2017-03-27 10:11:17 -07:00
|
|
|
maintainers = [ ];
|
2017-12-09 03:44:22 -08:00
|
|
|
platforms = lib.platforms.unix;
|
|
|
|
license = lib.licenses.mpl11;
|
2010-09-15 05:57:49 -07:00
|
|
|
};
|
2010-09-14 07:29:31 -07:00
|
|
|
}
|