librist: 0.2.7 -> 0.2.8
This commit is contained in:
parent
7497076526
commit
717da2702a
2 changed files with 21 additions and 2 deletions
14
pkgs/development/libraries/librist/darwin.patch
Normal file
14
pkgs/development/libraries/librist/darwin.patch
Normal 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)
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue