mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 06:45:16 +01:00
b86a583592
add
39 lines
1.2 KiB
Nix
39 lines
1.2 KiB
Nix
{ stdenv, lib, fetchurl }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "mp4v2-2.0.0";
|
|
|
|
src = fetchurl {
|
|
url = "https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/mp4v2/${name}.tar.bz2";
|
|
sha256 = "0f438bimimsvxjbdp4vsr8hjw2nwggmhaxgcw07g2z361fkbj683";
|
|
};
|
|
|
|
patches = [
|
|
(fetchurl {
|
|
name = "gcc-7.patch";
|
|
url = "https://src.fedoraproject.org/cgit/rpms/libmp4v2.git/plain/"
|
|
+ "0004-Fix-GCC7-build.patch?id=d7aeedabb";
|
|
sha256 = "0sbn0il7lmk77yrjyb4f0a3z3h8gsmdkscvz5n9hmrrrhrwf672w";
|
|
})
|
|
];
|
|
|
|
# `faac' expects `mp4.h'.
|
|
postInstall = "ln -s mp4v2/mp4v2.h $out/include/mp4.h";
|
|
|
|
hardeningDisable = [ "format" ];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
meta = {
|
|
description = "Abandoned library. Provides functions to read, create, and modify mp4 files";
|
|
longDescription = ''
|
|
MP4v2 library provides an API to work with mp4 files
|
|
as defined by ISO-IEC:14496-1:2001 MPEG-4 Systems.
|
|
This container format is derived from Apple's QuickTime format.
|
|
'';
|
|
homepage = https://code.google.com/archive/p/mp4v2/;
|
|
maintainers = [ lib.maintainers.Anton-Latukha ];
|
|
platforms = lib.platforms.unix;
|
|
license = lib.licenses.mpl11;
|
|
};
|
|
}
|