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