1{ stdenv, lib, fetchFromGitHub, fetchurl }:
2
3stdenv.mkDerivation rec {
4 pname = "mp4v2";
5 version = "5.0.1";
6
7 src = fetchFromGitHub {
8 # 2020-06-20: THE current upstream, maintained and used in distros fork.
9 owner = "TechSmith";
10 repo = "mp4v2";
11 rev = "Release-ThirdParty-MP4v2-${version}";
12 sha256 = "sha256-OP+oVTH9pqYfHtYL1Kjrs1qey/J40ijLi5Gu8GJnvSY=";
13 };
14
15 env.NIX_CFLAGS_COMPILE = "-Wno-error=narrowing";
16
17 # `faac' expects `mp4.h'.
18 postInstall = "ln -s mp4v2/mp4v2.h $out/include/mp4.h";
19
20 enableParallelBuilding = true;
21
22 meta = {
23 description = "Provides functions to read, create, and modify mp4 files";
24 longDescription = ''
25 MP4v2 library provides an API to work with mp4 files
26 as defined by ISO-IEC:14496-1:2001 MPEG-4 Systems.
27 This container format is derived from Apple's QuickTime format.
28 '';
29 homepage = "https://github.com/TechSmith/mp4v2";
30 maintainers = [ lib.maintainers.Anton-Latukha ];
31 platforms = lib.platforms.unix;
32 license = lib.licenses.mpl11;
33 };
34}