2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, pkg-config, zlib }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2022-03-05 16:20:37 +00:00
|
|
|
version = "2.0.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "gpac";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "gpac";
|
|
|
|
repo = "gpac";
|
|
|
|
rev = "v${version}";
|
2022-03-05 16:20:37 +00:00
|
|
|
sha256 = "sha256-MIX32lSqf/lrz9240h4wMIQp/heUmwvDJz8WN08yf6c=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace Makefile --replace 'dh_link' 'ln -s'
|
|
|
|
'';
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
# this is the bare minimum configuration, as I'm only interested in MP4Box
|
|
|
|
# For most other functionality, this should probably be extended
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildInputs = [ zlib ];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Open Source multimedia framework for research and academic purposes";
|
|
|
|
longDescription = ''
|
|
|
|
GPAC is an Open Source multimedia framework for research and academic purposes.
|
|
|
|
The project covers different aspects of multimedia, with a focus on presentation
|
|
|
|
technologies (graphics, animation and interactivity) and on multimedia packaging
|
|
|
|
formats such as MP4.
|
|
|
|
|
|
|
|
GPAC provides three sets of tools based on a core library called libgpac:
|
|
|
|
|
|
|
|
A multimedia player, called Osmo4 / MP4Client,
|
|
|
|
A multimedia packager, called MP4Box,
|
|
|
|
And some server tools included in MP4Box and MP42TS applications.
|
|
|
|
'';
|
|
|
|
homepage = "https://gpac.wp.imt.fr";
|
|
|
|
license = licenses.lgpl21;
|
|
|
|
maintainers = with maintainers; [ bluescreen303 mgdelacroix ];
|
|
|
|
platforms = platforms.linux;
|
2022-08-12 12:06:08 +00:00
|
|
|
knownVulnerabilities = [
|
|
|
|
"CVE-2022-1035"
|
|
|
|
"CVE-2022-1172"
|
|
|
|
"CVE-2022-1222"
|
|
|
|
"CVE-2022-1795"
|
|
|
|
"CVE-2022-2453"
|
|
|
|
"CVE-2022-2454"
|
|
|
|
"CVE-2022-2549"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|