21 , gobject-introspection
51 inherit (darwin.apple_sdk.frameworks) CoreFoundation Security;
55 nativeBuildInputs = [ pkg-config ];
56 buildInputs = [ alsa-lib ];
60 buildInputs = [ cairo ];
63 cairo-sys-rs = attrs: {
64 nativeBuildInputs = [ pkg-config ];
65 buildInputs = [ cairo ];
66 extraLinkFlags = [ "-L${zlib.out}/lib" ];
70 nativeBuildInputs = [ capnproto ];
74 buildInputs = [ openssl zlib curl ]
75 ++ lib.optionals stdenv.hostPlatform.isDarwin [ CoreFoundation Security ];
79 nativeBuildInputs = [ pkg-config ];
80 buildInputs = [ zlib ];
81 extraLinkFlags = [ "-L${zlib.out}/lib" ];
85 nativeBuildInputs = [ pkg-config ];
86 buildInputs = [ zlib curl ];
87 propagatedBuildInputs = [ curl zlib ];
88 extraLinkFlags = [ "-L${zlib.out}/lib" ];
92 nativeBuildInputs = [ pkg-config ];
93 buildInputs = [ dbus ];
99 ] ++ lib.optionals (stdenv.buildPlatform.config != stdenv.hostPlatform.config) [
105 buildInputs = [ libevdev ];
107 # This prevents libevdev's build.rs from trying to `git fetch` when HOST!=TARGET
114 nativeBuildInputs = [ cmake ];
117 foundationdb-sys = attrs: {
118 buildInputs = [ foundationdb ];
119 # needed for 0.4+ release, when the FFI bindings are auto-generated
122 # substituteInPlace ./foundationdb-sys/build.rs \
123 # --replace /usr/local/include ${foundationdb.dev}/include
127 foundationdb = attrs: {
128 buildInputs = [ foundationdb ];
131 freetype-sys = attrs: {
132 nativeBuildInputs = [ cmake ];
133 buildInputs = [ freetype ];
137 nativeBuildInputs = [ pkg-config ];
138 buildInputs = [ glib ];
139 extraLinkFlags = [ "-L${zlib.out}/lib" ];
142 gobject-sys = attrs: {
143 nativeBuildInputs = [ pkg-config ];
144 buildInputs = [ dbus-glib ];
148 nativeBuildInputs = [ pkg-config ];
149 buildInputs = [ dbus-glib ];
152 gdk-pixbuf = attrs: {
153 buildInputs = [ dbus-glib gdk-pixbuf ];
156 gdk-pixbuf-sys = attrs: {
157 nativeBuildInputs = [ pkg-config ];
158 buildInputs = [ gdk-pixbuf ];
162 nativeBuildInputs = [ pkg-config ];
163 buildInputs = [ gtk3 ]; # libgdk-3
166 gdkx11-sys = attrs: {
167 nativeBuildInputs = [ pkg-config ];
168 buildInputs = [ gtk3 ];
172 buildInputs = [ gtk3 ];
173 nativeBuildInputs = [ pkg-config ];
177 buildInputs = [ gtk4 ];
178 nativeBuildInputs = [ pkg-config ];
182 buildInputs = [ gtk4 ];
183 nativeBuildInputs = [ pkg-config ];
187 buildInputs = [ gtk4 ];
188 nativeBuildInputs = [ pkg-config ];
191 libgit2-sys = attrs: {
192 LIBGIT2_SYS_USE_PKG_CONFIG = true;
193 nativeBuildInputs = [ pkg-config ];
194 buildInputs = [ openssl zlib libgit2 ];
197 libseat-sys = attrs: {
198 nativeBuildInputs = [ pkg-config ];
199 buildInputs = [ seatd ];
202 libsqlite3-sys = attrs: {
203 nativeBuildInputs = [ pkg-config ];
204 buildInputs = [ sqlite ];
207 libssh2-sys = attrs: {
208 nativeBuildInputs = [ pkg-config ];
209 buildInputs = [ openssl zlib libssh2 ];
212 libdbus-sys = attrs: {
213 nativeBuildInputs = [ pkg-config ];
214 buildInputs = [ dbus ];
217 libudev-sys = attrs: {
218 nativeBuildInputs = [ pkg-config ];
219 buildInputs = [ udev ];
222 graphene-sys = attrs: {
223 nativeBuildInputs = [ pkg-config gobject-introspection ];
224 buildInputs = [ graphene ];
227 javascriptcore-rs-sys = attrs: {
228 nativeBuildInputs = [ pkg-config ];
229 buildInputs = [ webkitgtk_4_1 ];
232 nettle-sys = attrs: {
233 nativeBuildInputs = [ pkg-config ];
234 buildInputs = [ nettle clang ];
235 LIBCLANG_PATH = "${llvmPackages.libclang.lib}/lib";
239 buildInputs = [ openssl ];
242 openssl-sys = attrs: {
243 nativeBuildInputs = [ pkg-config ];
244 buildInputs = [ openssl ];
247 opentelemetry-proto = attrs: {
248 nativeBuildInputs = [ protobuf ];
252 buildInputs = [ linux-pam ];
256 nativeBuildInputs = [ pkg-config ];
257 buildInputs = [ pango ];
261 nativeBuildInputs = [ pkg-config ];
262 buildInputs = [ postgresql ];
265 prost-build = attr: {
266 nativeBuildInputs = [ protobuf ];
269 prost-wkt-types = attr: {
270 nativeBuildInputs = [ protobuf ];
273 rdkafka-sys = attr: {
274 nativeBuildInputs = [ pkg-config ];
275 buildInputs = [ rdkafka ];
279 buildInputs = [ gmp ];
280 crateBin = [{ name = "rink"; path = "src/bin/rink.rs"; }];
283 security-framework-sys = attr: {
284 propagatedBuildInputs = lib.optional stdenv.hostPlatform.isDarwin Security;
287 sequoia-openpgp = attrs: {
288 buildInputs = [ gmp ];
291 sequoia-openpgp-ffi = attrs: {
292 buildInputs = [ gmp ];
295 sequoia-ipc = attrs: {
296 buildInputs = [ gmp ];
299 sequoia-guide = attrs: {
300 buildInputs = [ gmp ];
303 pangocairo-sys = attr: {
304 nativeBuildInputs = [ pkg-config ];
305 buildInputs = [ pango ];
308 sequoia-store = attrs: {
309 nativeBuildInputs = [ capnproto ];
310 buildInputs = [ sqlite gmp ];
313 sequoia-sq = attrs: {
314 buildInputs = [ sqlite gmp ];
317 sequoia-tool = attrs: {
318 nativeBuildInputs = [ capnproto ];
319 buildInputs = [ sqlite gmp ];
322 serde_derive = attrs: {
323 buildInputs = lib.optional stdenv.hostPlatform.isDarwin Security;
326 servo-fontconfig-sys = attrs: {
327 nativeBuildInputs = [ pkg-config ];
328 buildInputs = [ freetype fontconfig ];
332 nativeBuildInputs = [ pkg-config ];
333 buildInputs = [ libsoup_3 ];
334 extraLinkFlags = [ "-L${zlib.out}/lib" ];
337 thrussh-libsodium = attrs: {
338 nativeBuildInputs = [ pkg-config ];
339 buildInputs = [ libsodium ];
342 tonic-reflection = attrs: {
343 nativeBuildInputs = [ protobuf ];
346 webkit2gtk-sys = attrs: {
347 nativeBuildInputs = [ pkg-config ];
348 buildInputs = [ webkitgtk_4_1 ];
349 extraLinkFlags = [ "-L${zlib.out}/lib" ];
353 buildInputs = [ python3 ];
357 nativeBuildInputs = [ pkg-config ];
358 buildInputs = [ atk ];
361 # Assumes it can run Command::new(env::var("CARGO")).arg("locate-project")
362 # https://github.com/bkchr/proc-macro-crate/blame/master/src/lib.rs#L244
363 proc-macro-crate = attrs: lib.optionalAttrs (lib.versionAtLeast attrs.version "2.0") {
364 prePatch = (attrs.prePatch or "") + ''
368 'env::var("CARGO").map_err(|_| Error::CargoEnvVariableNotSet)?' \
369 '"${lib.getBin buildPackages.cargo}/bin/cargo"'