librist: 0.2.7 -> 0.2.8

This commit is contained in:
R. Ryantm 2023-09-24 04:55:30 +00:00 committed by Weijia Wang
parent 7497076526
commit 717da2702a
2 changed files with 21 additions and 2 deletions

View file

@ -0,0 +1,14 @@
--- a/tools/srp_shared.c
+++ b/tools/srp_shared.c
@@ -173,7 +173,11 @@ void user_verifier_lookup(char * username,
if (stat(srpfile, &buf) != 0)
return;
+#if defined(__APPLE__)
+ *generation = (buf.st_mtimespec.tv_sec << 32) | buf.st_mtimespec.tv_nsec;
+#else
*generation = (buf.st_mtim.tv_sec << 32) | buf.st_mtim.tv_nsec;
+#endif
#endif
if (!lookup_data || !hashversion)

View file

@ -11,16 +11,21 @@
stdenv.mkDerivation rec {
pname = "librist";
version = "0.2.7";
version = "0.2.8";
src = fetchFromGitLab {
domain = "code.videolan.org";
owner = "rist";
repo = "librist";
rev = "v${version}";
sha256 = "sha256-qQG2eRAPAQgxghMeUZk3nwyacX6jDl33F8BWW63nM3c=";
hash = "sha256-E12TS+N47UQapkF6oO0Lx66Z3lHAyP0R4tVnx/uKBwQ=";
};
patches = [
# https://github.com/NixOS/nixpkgs/pull/257020
./darwin.patch
];
nativeBuildInputs = [
meson
ninja