mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-28 10:50:15 +00:00
srt: enable strictDeps, enable structuredAttrs, modernize (#558318)
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user