diff options
Diffstat (limited to 'nixpkgs/pkgs/os-specific/linux/v4l2-relayd/default.nix')
-rw-r--r-- | nixpkgs/pkgs/os-specific/linux/v4l2-relayd/default.nix | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/os-specific/linux/v4l2-relayd/default.nix b/nixpkgs/pkgs/os-specific/linux/v4l2-relayd/default.nix new file mode 100644 index 000000000000..a089ce8c77f8 --- /dev/null +++ b/nixpkgs/pkgs/os-specific/linux/v4l2-relayd/default.nix @@ -0,0 +1,47 @@ +{ 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"; + homepage = "https://git.launchpad.net/v4l2-relayd"; + license = licenses.gpl2; + maintainers = with maintainers; [ betaboon ]; + platforms = [ "x86_64-linux" ]; + }; +} |