slackdump: 3.0.3 -> 3.0.5 (#379390)
[NixPkgs.git] / pkgs / by-name / vv / vvenc / package.nix
blob9efe72fd7f7d0f9b4e7aa9cb30555deff6c30889
2   lib,
3   fetchFromGitHub,
4   stdenv,
5   gitUpdater,
6   testers,
7   cmake,
8 }:
10 stdenv.mkDerivation (finalAttrs: {
11   pname = "vvenc";
12   version = "1.13.0";
14   outputs = [
15     "out"
16     "lib"
17     "dev"
18   ];
20   src = fetchFromGitHub {
21     owner = "fraunhoferhhi";
22     repo = "vvenc";
23     rev = "v${finalAttrs.version}";
24     hash = "sha256-9fWKunafTniBsY9hK09+xYwvB7IgGPhZmgqauPHgB/g=";
25   };
27   patches = [ ./unset-darwin-cmake-flags.patch ];
29   env.NIX_CFLAGS_COMPILE = toString (
30     lib.optionals stdenv.cc.isGNU [
31       "-Wno-maybe-uninitialized"
32       "-Wno-uninitialized"
33     ]
34   );
36   nativeBuildInputs = [ cmake ];
38   cmakeFlags = [
39     (lib.cmakeBool "VVENC_INSTALL_FULLFEATURE_APP" true)
40     (lib.cmakeBool "BUILD_SHARED_LIBS" (!stdenv.hostPlatform.isStatic))
41   ];
43   passthru = {
44     updateScript = gitUpdater {
45       rev-prefix = "v";
46       ignoredVersions = "rc";
47     };
48     tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
49   };
51   meta = {
52     homepage = "https://github.com/fraunhoferhhi/vvenc";
53     description = "Fraunhofer Versatile Video Encoder";
54     license = lib.licenses.bsd3Clear;
55     mainProgram = "vvencapp";
56     pkgConfigModules = [ "libvvenc" ];
57     maintainers = with lib.maintainers; [ jopejoe1 ];
58     platforms = lib.platforms.all;
59   };