mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 05:25:38 +00:00
4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
46 lines
1.4 KiB
Nix
46 lines
1.4 KiB
Nix
{ lib, stdenv, fetchFromGitHub, pkgconfig, zlib }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "1.0.1";
|
|
pname = "gpac";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "gpac";
|
|
repo = "gpac";
|
|
rev = "v${version}";
|
|
sha256 = "0gj46jpprfqv3wyagblv3a52chbplyzhvpra66v63czjibqsslm5";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace Makefile --replace 'dh_link' 'ln -s'
|
|
'';
|
|
|
|
# this is the bare minimum configuration, as I'm only interested in MP4Box
|
|
# For most other functionality, this should probably be extended
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ zlib ];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
meta = with lib; {
|
|
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;
|
|
};
|
|
}
|