2024-06-05 15:53:02 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2020-07-18 16:06:22 +00:00
|
|
|
pname = "mp4v2";
|
2022-12-17 10:02:37 +00:00
|
|
|
version = "5.0.1";
|
2020-07-18 16:06:22 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
# 2020-06-20: THE current upstream, maintained and used in distros fork.
|
|
|
|
owner = "TechSmith";
|
|
|
|
repo = "mp4v2";
|
|
|
|
rev = "Release-ThirdParty-MP4v2-${version}";
|
2022-12-17 10:02:37 +00:00
|
|
|
sha256 = "sha256-OP+oVTH9pqYfHtYL1Kjrs1qey/J40ijLi5Gu8GJnvSY=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-03-04 12:14:45 +00:00
|
|
|
env.NIX_CFLAGS_COMPILE = "-Wno-error=narrowing";
|
2021-01-05 17:05:55 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
# `faac' expects `mp4.h'.
|
|
|
|
postInstall = "ln -s mp4v2/mp4v2.h $out/include/mp4.h";
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
meta = {
|
2020-07-18 16:06:22 +00:00
|
|
|
description = "Provides functions to read, create, and modify mp4 files";
|
2020-04-24 23:36:52 +00:00
|
|
|
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.
|
|
|
|
'';
|
2020-07-18 16:06:22 +00:00
|
|
|
homepage = "https://github.com/TechSmith/mp4v2";
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = [ lib.maintainers.Anton-Latukha ];
|
|
|
|
platforms = lib.platforms.unix;
|
|
|
|
license = lib.licenses.mpl11;
|
|
|
|
};
|
|
|
|
}
|