Unverified Commit d0fcd389 authored by quantenzitrone's avatar quantenzitrone
Browse files

xf86-video-v4l: refactor, move to pkgs/by-name & rename from xorg.xf86videov4l

relevant changes:
- switch to GitLab source instead of release tarball
parent 580c18b2
Loading
Loading
Loading
Loading
+56 −0
Original line number Diff line number Diff line
{
  lib,
  stdenv,
  fetchFromGitLab,
  autoreconfHook,
  pkg-config,
  util-macros,
  xorg-server,
  xorgproto,
  nix-update-script,
}:
stdenv.mkDerivation (finalAttrs: {
  pname = "xf86-video-v4l";
  version = "0.3.0";

  src = fetchFromGitLab {
    domain = "gitlab.freedesktop.org";
    group = "xorg";
    owner = "driver";
    repo = "xf86-video-v4l";
    tag = "xf86-video-v4l-${finalAttrs.version}";
    hash = "sha256-uCKeecAqHycYduKaDVMupGvMN84vHeF3ECyVchkXwdA=";
  };

  strictDeps = true;

  nativeBuildInputs = [
    autoreconfHook
    pkg-config
    util-macros
    xorg-server # for some autoconf macros
  ];

  buildInputs = [
    xorg-server
    xorgproto
  ];

  passthru = {
    updateScript = nix-update-script { extraArgs = [ "--version-regex=xf86-video-v4l-(.*)" ]; };
  };

  meta = {
    description = "Video 4 Linux adaptor driver for the Xorg X server";
    homepage = "https://gitlab.freedesktop.org/xorg/driver/xf86-video-v4l";
    license = with lib.licenses; [
      # MIT AND X11 AND (GPL-2.0-or-later OR BSD-3-Clause)
      mit
      x11
      gpl2Plus
      bsd3
    ];
    maintainers = [ ];
    platforms = lib.platforms.linux;
  };
})
+2 −36
Original line number Diff line number Diff line
@@ -136,6 +136,7 @@
  xf86-video-geode,
  xf86-video-nouveau,
  xf86-video-s3virge,
  xf86-video-v4l,
  xfd,
  xfontsel,
  xfs,
@@ -350,6 +351,7 @@ self: with self; {
  xf86videogeode = xf86-video-geode;
  xf86videonouveau = xf86-video-nouveau;
  xf86videos3virge = xf86-video-s3virge;
  xf86videov4l = xf86-video-v4l;
  xkeyboardconfig = xkeyboard-config;
  xorgcffiles = xorg-cf-files;
  xorgdocs = xorg-docs;
@@ -1636,42 +1638,6 @@ self: with self; {
    })
  ) { };

  # THIS IS A GENERATED FILE.  DO NOT EDIT!
  xf86videov4l = callPackage (
    {
      stdenv,
      pkg-config,
      fetchurl,
      xorgproto,
      xorgserver,
      testers,
    }:
    stdenv.mkDerivation (finalAttrs: {
      pname = "xf86-video-v4l";
      version = "0.3.0";
      builder = ./builder.sh;
      src = fetchurl {
        url = "mirror://xorg/individual/driver/xf86-video-v4l-0.3.0.tar.bz2";
        sha256 = "084x4p4avy72mgm2vnnvkicw3419i6pp3wxik8zqh7gmq4xv5z75";
      };
      hardeningDisable = [
        "bindnow"
        "relro"
      ];
      strictDeps = true;
      nativeBuildInputs = [ pkg-config ];
      buildInputs = [
        xorgproto
        xorgserver
      ];
      passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
      meta = {
        pkgConfigModules = [ ];
        platforms = lib.platforms.unix;
      };
    })
  ) { };

  # THIS IS A GENERATED FILE.  DO NOT EDIT!
  xf86videovboxvideo = callPackage (
    {
+2 −0
Original line number Diff line number Diff line
@@ -468,6 +468,7 @@ print OUT <<EOF;
  xf86-video-geode,
  xf86-video-nouveau,
  xf86-video-s3virge,
  xf86-video-v4l,
  xfd,
  xfontsel,
  xfs,
@@ -682,6 +683,7 @@ self: with self; {
  xf86videogeode = xf86-video-geode;
  xf86videonouveau = xf86-video-nouveau;
  xf86videos3virge = xf86-video-s3virge;
  xf86videov4l = xf86-video-v4l;
  xkeyboardconfig = xkeyboard-config;
  xorgcffiles = xorg-cf-files;
  xorgdocs = xorg-docs;
+0 −6
Original line number Diff line number Diff line
@@ -126,12 +126,6 @@ self: super:
    };
  });

  xf86videov4l = super.xf86videov4l.overrideAttrs (attrs: {
    meta = attrs.meta // {
      platforms = lib.platforms.linux;
    };
  });

  xf86videoomap = super.xf86videoomap.overrideAttrs (attrs: {
    env.NIX_CFLAGS_COMPILE = toString [ "-Wno-error=format-overflow" ];
  });
+0 −1
Original line number Diff line number Diff line
@@ -34,7 +34,6 @@ mirror://xorg/individual/driver/xf86-video-sunffb-1.2.3.tar.xz
mirror://xorg/individual/driver/xf86-video-sunleo-1.2.3.tar.xz
mirror://xorg/individual/driver/xf86-video-tdfx-1.5.0.tar.bz2
mirror://xorg/individual/driver/xf86-video-trident-1.4.0.tar.xz
mirror://xorg/individual/driver/xf86-video-v4l-0.3.0.tar.bz2
mirror://xorg/individual/driver/xf86-video-vboxvideo-1.0.1.tar.xz
mirror://xorg/individual/driver/xf86-video-vesa-2.6.0.tar.xz
mirror://xorg/individual/driver/xf86-video-vmware-13.4.0.tar.xz