at 18.03-beta 37 lines 1.0 kB view raw
1{ stdenv, lib, fetchurl }: 2 3stdenv.mkDerivation rec { 4 name = "mp4v2-2.0.0"; 5 6 src = fetchurl { 7 url = "https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/mp4v2/${name}.tar.bz2"; 8 sha256 = "0f438bimimsvxjbdp4vsr8hjw2nwggmhaxgcw07g2z361fkbj683"; 9 }; 10 11 patches = [ 12 # From Handbrake 13 # mp4v2 doesn't seem to be actively maintained any more :-/ 14 ./A02-meaningful-4gb-warning.patch 15 16 (fetchurl { 17 name = "gcc-7.patch"; 18 url = "https://src.fedoraproject.org/cgit/rpms/libmp4v2.git/plain/" 19 + "0004-Fix-GCC7-build.patch?id=d7aeedabb"; 20 sha256 = "0sbn0il7lmk77yrjyb4f0a3z3h8gsmdkscvz5n9hmrrrhrwf672w"; 21 }) 22 ]; 23 24 # `faac' expects `mp4.h'. 25 postInstall = "ln -s mp4v2/mp4v2.h $out/include/mp4.h"; 26 27 hardeningDisable = [ "format" ]; 28 29 enableParallelBuilding = true; 30 31 meta = { 32 homepage = https://code.google.com/archive/p/mp4v2/; 33 maintainers = [ ]; 34 platforms = lib.platforms.unix; 35 license = lib.licenses.mpl11; 36 }; 37}