tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
ffmpeg: Add `meta.pkgConfigModules` and test
John Ericson
3 years ago
79631365
ee2fd1e5
+11
-4
1 changed file
expand all
collapse all
unified
split
pkgs
development
libraries
ffmpeg
generic.nix
+11
-4
pkgs/development/libraries/ffmpeg/generic.nix
···
266
, MediaToolbox
267
, VideoDecodeAcceleration
268
, VideoToolbox
0
0
0
0
269
}:
270
271
/* Maintainer notes:
···
321
assert buildPostproc -> buildAvutil;
322
assert buildSwscale -> buildAvutil;
323
324
-
stdenv.mkDerivation rec {
325
pname = "ffmpeg" + (if ffmpegVariant == "small" then "" else "-${ffmpegVariant}");
326
inherit version;
327
328
src = fetchgit {
329
url = "https://git.ffmpeg.org/ffmpeg.git";
330
-
rev = "n${version}";
331
inherit sha256;
332
};
333
···
522
# outputs where we don't want them. Patch the generated config.h to remove all
523
# such references except for data.
524
postConfigure = let
525
-
toStrip = lib.remove "data" outputs; # We want to keep references to the data dir.
526
in
527
"remove-references-to ${lib.concatStringsSep " " (map (o: "-t ${placeholder o}") toStrip)} config.h";
528
···
656
657
enableParallelBuilding = true;
658
0
0
659
meta = with lib; {
660
description = "A complete, cross-platform solution to record, convert and stream audio and video";
661
homepage = "https://www.ffmpeg.org/";
···
671
++ optional withGPL gpl2Plus
672
++ optional withGPLv3 gpl3Plus
673
++ optional withUnfree unfreeRedistributable;
0
674
platforms = platforms.all;
675
maintainers = with maintainers; [ atemu ];
676
};
677
-
}
···
266
, MediaToolbox
267
, VideoDecodeAcceleration
268
, VideoToolbox
269
+
/*
270
+
* Testing
271
+
*/
272
+
, testers
273
}:
274
275
/* Maintainer notes:
···
325
assert buildPostproc -> buildAvutil;
326
assert buildSwscale -> buildAvutil;
327
328
+
stdenv.mkDerivation (finalAttrs: {
329
pname = "ffmpeg" + (if ffmpegVariant == "small" then "" else "-${ffmpegVariant}");
330
inherit version;
331
332
src = fetchgit {
333
url = "https://git.ffmpeg.org/ffmpeg.git";
334
+
rev = "n${finalAttrs.version}";
335
inherit sha256;
336
};
337
···
526
# outputs where we don't want them. Patch the generated config.h to remove all
527
# such references except for data.
528
postConfigure = let
529
+
toStrip = lib.remove "data" finalAttrs.outputs; # We want to keep references to the data dir.
530
in
531
"remove-references-to ${lib.concatStringsSep " " (map (o: "-t ${placeholder o}") toStrip)} config.h";
532
···
660
661
enableParallelBuilding = true;
662
663
+
passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
664
+
665
meta = with lib; {
666
description = "A complete, cross-platform solution to record, convert and stream audio and video";
667
homepage = "https://www.ffmpeg.org/";
···
677
++ optional withGPL gpl2Plus
678
++ optional withGPLv3 gpl3Plus
679
++ optional withUnfree unfreeRedistributable;
680
+
pkgConfigModules = [ "libavutil" ];
681
platforms = platforms.all;
682
maintainers = with maintainers; [ atemu ];
683
};
684
+
})