1 { stdenv, lib, fetchFromGitHub, fetchurl }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
8 # 2020-06-20: THE current upstream, maintained and used in distros fork.
11 rev = "Release-ThirdParty-MP4v2-${version}";
12 sha256 = "sha256-OP+oVTH9pqYfHtYL1Kjrs1qey/J40ijLi5Gu8GJnvSY=";
15 env.NIX_CFLAGS_COMPILE = "-Wno-error=narrowing";
17 # `faac' expects `mp4.h'.
18 postInstall = "ln -s mp4v2/mp4v2.h $out/include/mp4.h";
20 enableParallelBuilding = true;
23 description = "Provides functions to read, create, and modify mp4 files";
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.
29 homepage = "https://github.com/TechSmith/mp4v2";
30 maintainers = [ lib.maintainers.Anton-Latukha ];
31 platforms = lib.platforms.unix;
32 license = lib.licenses.mpl11;