From 0989b93cf892fe7dd8b53974747a12794391bdca Mon Sep 17 00:00:00 2001 From: Doron Behar Date: Fri, 16 Oct 2020 12:03:31 +0300 Subject: [PATCH] rtsp-simple-server: init at 0.10.0 --- pkgs/servers/rtsp-simple-server/default.nix | 35 +++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 37 insertions(+) create mode 100644 pkgs/servers/rtsp-simple-server/default.nix diff --git a/pkgs/servers/rtsp-simple-server/default.nix b/pkgs/servers/rtsp-simple-server/default.nix new file mode 100644 index 000000000000..72cebb95b6bd --- /dev/null +++ b/pkgs/servers/rtsp-simple-server/default.nix @@ -0,0 +1,35 @@ +{ stdenv +, fetchFromGitHub +, buildGoModule +}: + +buildGoModule rec { + pname = "rtsp-simple-server"; + version = "0.10.0"; + + src = fetchFromGitHub { + owner = "aler9"; + repo = pname; + rev = "v${version}"; + sha256 = "rnUmPyT9jAqm7Vf2TokgRGPTn7rTBUvrpJU21IopFsM="; + }; + + vendorSha256 = "jAWDz/TclfCKQR/Gh99zSiGAsraciNU+yzFe5DGTeQI="; + + # Tests need docker + doCheck = false; + + buildFlagsArray = [ + "-ldflags=-X main.Version=${version}" + ]; + + meta = with stdenv.lib; { + description = + "Ready-to-use RTSP server and RTSP proxy that allows to read and publish video and audio streams" + ; + inherit (src.meta) homepage; + license = licenses.mit; + maintainers = with maintainers; [ doronbehar ]; + }; + +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index b5e96c702485..211f5d5b8df5 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -18527,6 +18527,8 @@ in roccat-tools = callPackage ../os-specific/linux/roccat-tools { }; + rtsp-simple-server = callPackage ../servers/rtsp-simple-server { }; + rtkit = callPackage ../os-specific/linux/rtkit { }; rt5677-firmware = callPackage ../os-specific/linux/firmware/rt5677 { };