skim: 0.15.7 -> 0.16.0 (#376410)
[NixPkgs.git] / pkgs / by-name / sr / srt-live-server / package.nix
blob47d1d58419e2413781a302aaa1f7145af2ea2604
2   lib,
3   fetchFromGitHub,
4   stdenv,
5   srt,
6   zlib,
7 }:
9 stdenv.mkDerivation rec {
10   pname = "srt-live-server";
11   version = "1.4.8";
13   src = fetchFromGitHub {
14     owner = "Edward-Wu";
15     repo = "srt-live-server";
16     rev = "V${version}";
17     sha256 = "0x48sxpgxznb1ymx8shw437pcgk76ka5rx0zhn9b3cyi9jlq1yld";
18   };
20   patches = [
21     # https://github.com/Edward-Wu/srt-live-server/pull/94
22     ./fix-insecure-printfs.patch
24     # https://github.com/Edward-Wu/srt-live-server/pull/127  # adds `#include <ctime>`
25     ./add-ctime-include.patch
26   ];
28   buildInputs = [
29     srt
30     zlib
31   ];
33   makeFlags = [
34     "PREFIX=$(out)"
35   ];
37   meta = with lib; {
38     description = "srt live server for low latency";
39     license = licenses.mit;
40     homepage = "https://github.com/Edward-Wu/srt-live-server";
41     maintainers = with maintainers; [ shamilton ];
42     platforms = platforms.linux;
43   };