Skip to content

Commit 65038ab

Browse files
nsncd: unstable-2024-03-18 -> 1.4.1-unstable-2024-04-10
Fixes nsncd for rustc > 1.80. Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
1 parent f398d69 commit 65038ab

File tree

2 files changed

+210
-5
lines changed

2 files changed

+210
-5
lines changed
Lines changed: 197 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,197 @@
1+
From b68e8356cf85fa75582237b4bc02f47efc40e8f0 Mon Sep 17 00:00:00 2001
2+
From: Picnoir <picnoir@alternativebit.fr>
3+
Date: Tue, 6 Aug 2024 11:43:34 +0200
4+
Subject: [PATCH] cargo.lock: bump time version
5+
6+
Bumping time to 0.3.36. Fix the build for rustc > 1.80.
7+
8+
Fix https://github.com/twosigma/nsncd/issues/118
9+
---
10+
Cargo.lock | 74 ++++++++++++++++++++++++++++++++++++++++--------------
11+
1 file changed, 55 insertions(+), 19 deletions(-)
12+
13+
diff --git a/Cargo.lock b/Cargo.lock
14+
index a043bde..f6ce6f4 100644
15+
--- a/Cargo.lock
16+
+++ b/Cargo.lock
17+
@@ -205,6 +205,15 @@ version = "0.8.19"
18+
source = "registry+https://github.com/rust-lang/crates.io-index"
19+
checksum = "248e3bacc7dc6baa3b21e405ee045c3047101a49145e7e9eca583ab4c2ca5345"
20+
21+
+[[package]]
22+
+name = "deranged"
23+
+version = "0.3.11"
24+
+source = "registry+https://github.com/rust-lang/crates.io-index"
25+
+checksum = "b42b6fa04a440b495c8b04d0e71b707c585f83cb9cb28cf8cd0d976c315e31b4"
26+
+dependencies = [
27+
+ "powerfmt",
28+
+]
29+
+
30+
[[package]]
31+
name = "dirs-next"
32+
version = "2.0.0"
33+
@@ -426,6 +435,12 @@ dependencies = [
34+
"temp-env",
35+
]
36+
37+
+[[package]]
38+
+name = "num-conv"
39+
+version = "0.1.0"
40+
+source = "registry+https://github.com/rust-lang/crates.io-index"
41+
+checksum = "51d515d32fb182ee37cda2ccdcb92950d6a3c2893aa280e540671c2cd0f3b1d9"
42+
+
43+
[[package]]
44+
name = "num-derive"
45+
version = "0.3.3"
46+
@@ -434,7 +449,7 @@ checksum = "876a53fff98e03a936a674b29568b0e605f06b29372c2489ff4de23f1949743d"
47+
dependencies = [
48+
"proc-macro2",
49+
"quote",
50+
- "syn",
51+
+ "syn 1.0.109",
52+
]
53+
54+
[[package]]
55+
@@ -519,20 +534,26 @@ dependencies = [
56+
"plotters-backend",
57+
]
58+
59+
+[[package]]
60+
+name = "powerfmt"
61+
+version = "0.2.0"
62+
+source = "registry+https://github.com/rust-lang/crates.io-index"
63+
+checksum = "439ee305def115ba05938db6eb1644ff94165c5ab5e9420d1c1bcedbba909391"
64+
+
65+
[[package]]
66+
name = "proc-macro2"
67+
-version = "1.0.64"
68+
+version = "1.0.86"
69+
source = "registry+https://github.com/rust-lang/crates.io-index"
70+
-checksum = "78803b62cbf1f46fde80d7c0e803111524b9877184cfe7c3033659490ac7a7da"
71+
+checksum = "5e719e8df665df0d1c8fbfd238015744736151d4445ec0836b8e628aae103b77"
72+
dependencies = [
73+
"unicode-ident",
74+
]
75+
76+
[[package]]
77+
name = "quote"
78+
-version = "1.0.23"
79+
+version = "1.0.36"
80+
source = "registry+https://github.com/rust-lang/crates.io-index"
81+
-checksum = "8856d8364d252a14d474036ea1358d63c9e6965c8e5c1885c18f73d70bff9c7b"
82+
+checksum = "0fa76aaf39101c457836aec0ce2316dbdc3ab723cdda1c6bd4e6ad4208acaca7"
83+
dependencies = [
84+
"proc-macro2",
85+
]
86+
@@ -652,22 +673,22 @@ checksum = "621e3680f3e07db4c9c2c3fb07c6223ab2fab2e54bd3c04c3ae037990f428c32"
87+
88+
[[package]]
89+
name = "serde"
90+
-version = "1.0.154"
91+
+version = "1.0.204"
92+
source = "registry+https://github.com/rust-lang/crates.io-index"
93+
-checksum = "8cdd151213925e7f1ab45a9bbfb129316bd00799784b174b7cc7bcd16961c49e"
94+
+checksum = "bc76f558e0cbb2a839d37354c575f1dc3fdc6546b5be373ba43d95f231bf7c12"
95+
dependencies = [
96+
"serde_derive",
97+
]
98+
99+
[[package]]
100+
name = "serde_derive"
101+
-version = "1.0.154"
102+
+version = "1.0.204"
103+
source = "registry+https://github.com/rust-lang/crates.io-index"
104+
-checksum = "4fc80d722935453bcafdc2c9a73cd6fac4dc1938f0346035d84bf99fa9e33217"
105+
+checksum = "e0cd7e117be63d3c3678776753929474f3b04a43a080c744d6b0ae2a8c28e222"
106+
dependencies = [
107+
"proc-macro2",
108+
"quote",
109+
- "syn",
110+
+ "syn 2.0.72",
111+
]
112+
113+
[[package]]
114+
@@ -745,6 +766,17 @@ dependencies = [
115+
"unicode-ident",
116+
]
117+
118+
+[[package]]
119+
+name = "syn"
120+
+version = "2.0.72"
121+
+source = "registry+https://github.com/rust-lang/crates.io-index"
122+
+checksum = "dc4b9b9bf2add8093d3f2c0204471e951b2285580335de42f9d2534f3ae7a8af"
123+
+dependencies = [
124+
+ "proc-macro2",
125+
+ "quote",
126+
+ "unicode-ident",
127+
+]
128+
+
129+
[[package]]
130+
name = "take_mut"
131+
version = "0.2.2"
132+
@@ -788,7 +820,7 @@ checksum = "5420d42e90af0c38c3290abcca25b9b3bdf379fc9f55c528f53a269d9c9a267e"
133+
dependencies = [
134+
"proc-macro2",
135+
"quote",
136+
- "syn",
137+
+ "syn 1.0.109",
138+
]
139+
140+
[[package]]
141+
@@ -803,11 +835,14 @@ dependencies = [
142+
143+
[[package]]
144+
name = "time"
145+
-version = "0.3.20"
146+
+version = "0.3.36"
147+
source = "registry+https://github.com/rust-lang/crates.io-index"
148+
-checksum = "cd0cbfecb4d19b5ea75bb31ad904eb5b9fa13f21079c3b92017ebdf4999a5890"
149+
+checksum = "5dfd88e563464686c916c7e46e623e520ddc6d79fa6641390f2e3fa86e83e885"
150+
dependencies = [
151+
+ "deranged",
152+
"itoa",
153+
+ "num-conv",
154+
+ "powerfmt",
155+
"serde",
156+
"time-core",
157+
"time-macros",
158+
@@ -815,16 +850,17 @@ dependencies = [
159+
160+
[[package]]
161+
name = "time-core"
162+
-version = "0.1.0"
163+
+version = "0.1.2"
164+
source = "registry+https://github.com/rust-lang/crates.io-index"
165+
-checksum = "2e153e1f1acaef8acc537e68b44906d2db6436e2b35ac2c6b42640fff91f00fd"
166+
+checksum = "ef927ca75afb808a4d64dd374f00a2adf8d0fcff8e7b184af886c3c87ec4a3f3"
167+
168+
[[package]]
169+
name = "time-macros"
170+
-version = "0.2.8"
171+
+version = "0.2.18"
172+
source = "registry+https://github.com/rust-lang/crates.io-index"
173+
-checksum = "fd80a657e71da814b8e5d60d3374fc6d35045062245d80224748ae522dd76f36"
174+
+checksum = "3f252a68540fde3a3877aeea552b832b40ab9a69e318efd078774a01ddee1ccf"
175+
dependencies = [
176+
+ "num-conv",
177+
"time-core",
178+
]
179+
180+
@@ -882,7 +918,7 @@ dependencies = [
181+
"once_cell",
182+
"proc-macro2",
183+
"quote",
184+
- "syn",
185+
+ "syn 1.0.109",
186+
"wasm-bindgen-shared",
187+
]
188+
189+
@@ -904,7 +940,7 @@ checksum = "2aff81306fcac3c7515ad4e177f521b5c9a15f2b08f4e32d823066102f35a5f6"
190+
dependencies = [
191+
"proc-macro2",
192+
"quote",
193+
- "syn",
194+
+ "syn 1.0.109",
195+
"wasm-bindgen-backend",
196+
"wasm-bindgen-shared",
197+
]

pkgs/os-specific/linux/nsncd/default.nix

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,29 @@
22
, stdenv
33
, fetchFromGitHub
44
, rustPlatform
5-
, nix-gitignore
65
}:
76

8-
rustPlatform.buildRustPackage rec {
7+
rustPlatform.buildRustPackage {
98
pname = "nsncd";
10-
version = "unstable-2024-03-18";
9+
version = "1.4.1-unstable-2024-04-10";
1110

1211
src = fetchFromGitHub {
1312
owner = "twosigma";
1413
repo = "nsncd";
15-
rev = "7605e330d5a313a8656e6fcaf1c10cd6b5cdd427";
14+
rev = "7605e330d5a313a8656e6fcaf1c10cd6b5cdd427";
1615
hash = "sha256-Bd7qE9MP5coBCkr70TdoJfwYhQpdrn/zmN4KoARcaMI=";
1716
};
1817

19-
cargoHash = "sha256-i1rmc5wxtc631hZy2oM4d6r7od0w8GrG7+/pdM6Gqco=";
18+
cargoHash = "sha256-N7U9YsyGh8+fLT973GGZTmVXcdnWhpqkeYTxzJ0rzdo=";
19+
20+
# TOREMOVE when https://github.com/twosigma/nsncd/pull/119 gets merged.
21+
cargoPatches = [
22+
./0001-cargo-bump.patch
23+
];
24+
25+
# TOREMOVE when https://github.com/twosigma/nsncd/pull/119 gets merged.
26+
RUSTFLAGS = "-A dead_code";
27+
2028
checkFlags = [
2129
# Relies on the test environment to be able to resolve "localhost"
2230
# on IPv4. That's not the case in the Nix sandbox somehow. Works

0 commit comments

Comments
 (0)