at 18.09-beta 33 lines 883 B 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 (fetchurl { 13 name = "gcc-7.patch"; 14 url = "https://src.fedoraproject.org/cgit/rpms/libmp4v2.git/plain/" 15 + "0004-Fix-GCC7-build.patch?id=d7aeedabb"; 16 sha256 = "0sbn0il7lmk77yrjyb4f0a3z3h8gsmdkscvz5n9hmrrrhrwf672w"; 17 }) 18 ]; 19 20 # `faac' expects `mp4.h'. 21 postInstall = "ln -s mp4v2/mp4v2.h $out/include/mp4.h"; 22 23 hardeningDisable = [ "format" ]; 24 25 enableParallelBuilding = true; 26 27 meta = { 28 homepage = https://code.google.com/archive/p/mp4v2/; 29 maintainers = [ ]; 30 platforms = lib.platforms.unix; 31 license = lib.licenses.mpl11; 32 }; 33}