nixpkgs/pkgs/by-name/v4/v4l2-relayd/package.nix
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08:00

49 lines
950 B
Nix

{ lib
, stdenv
, fetchgit
, autoreconfHook
, glib
, gst_all_1
, libtool
, pkg-config
, which
}:
stdenv.mkDerivation rec {
pname = "v4l2-relayd";
version = "0.1.3";
src = fetchgit {
url = "https://git.launchpad.net/v4l2-relayd";
rev = "refs/tags/upstream/${version}";
hash = "sha256-oU6naDFZ0PQVHZ3brANfMULDqYMYxeJN+MCUCvN/DpU=";
};
patches = [
./upstream-v4l2loopback-compatibility.patch
];
nativeBuildInputs = [
autoreconfHook
libtool
pkg-config
which
];
buildInputs = [
glib
gst_all_1.gstreamer
gst_all_1.gst-plugins-base
];
preConfigure = "./autogen.sh --prefix=$out";
meta = with lib; {
description = "Streaming relay for v4l2loopback using GStreamer";
mainProgram = "v4l2-relayd";
homepage = "https://git.launchpad.net/v4l2-relayd";
license = licenses.gpl2Only;
maintainers = with maintainers; [ betaboon ];
platforms = [ "x86_64-linux" ];
};
}