srt: enable strictDeps, enable structuredAttrs, modernize (#558318)

This commit is contained in:
LunNova
2026-09-12 18:28:59 +00:00
committed by GitHub

View File

@@ -3,6 +3,7 @@
stdenv,
fetchFromGitHub,
cmake,
bashNonInteractive,
openssl,
windows,
}:
@@ -14,19 +15,22 @@ stdenv.mkDerivation (finalAttrs: {
src = fetchFromGitHub {
owner = "Haivision";
repo = "srt";
rev = "v${finalAttrs.version}";
sha256 = "sha256-fdgj6URuMaem+ZVy7D8Hnf2Ev1HindevdvX0xyxCL4M=";
tag = "v${finalAttrs.version}";
hash = "sha256-fdgj6URuMaem+ZVy7D8Hnf2Ev1HindevdvX0xyxCL4M=";
};
nativeBuildInputs = [ cmake ];
buildInputs = [
bashNonInteractive
openssl
]
++ lib.optionals stdenv.hostPlatform.isMinGW [
windows.pthreads
];
strictDeps = true;
patches = [
]
++ lib.optionals stdenv.hostPlatform.isMinGW [
@@ -45,6 +49,8 @@ stdenv.mkDerivation (finalAttrs: {
"-UCMAKE_INSTALL_LIBDIR"
];
__structuredAttrs = true;
meta = {
description = "Secure, Reliable, Transport";
homepage = "https://github.com/Haivision/srt";