!VRULIdgoKmKPzJZzjj:nixos.org

Nix Hackers

884 Members
For people hacking on the Nix package manager itself191 Servers

Load older messages


SenderMessageTime
7 Nov 2025
@joerg:thalheim.ioMic92https://github.com/gcc-mirror/gcc/blob/d14d24b26126ec9c6c8ba5b2e573ed8e26347e6b/libstdc%2B%2B-v3/include/bits/c%2B%2Bconfig#L94319:51:54
@Ericson2314:matrix.orgJohn Ericsonah yeah19:53:55
@Ericson2314:matrix.orgJohn Ericson libstdc++-v3/include/bits/c++config:# define _GLIBCXX_USE_TBB_PAR_BACKEND __has_include(<tbb/tbb.h>) 19:54:00
@Ericson2314:matrix.orgJohn EricsonI would mention that + the blake3 in the commit message19:54:16
@Ericson2314:matrix.orgJohn Ericson IMO it boils down to, we want tbb to act like an (optional) private dependency of blake3, but it is public and leaking out like this 19:54:58
@joerg:thalheim.ioMic92added19:58:53
@joerg:thalheim.ioMic92* added https://github.com/NixOS/nix/pull/14509/files#diff-cad591cdc5170341a06019235c8734d55351bb1683223e0ddccabc1446452712R4919:59:20
@Ericson2314:matrix.orgJohn Ericsonapprovd20:09:16
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)Nixpkgs bump: https://github.com/NixOS/nixpkgs/pull/459549. If anybody wants to throw some non x86_64-linux compute on it that’d be great21:36:34
@emma:rory.gay@emma:rory.gay left the room.22:40:57
8 Nov 2025
@cassianistefano:matrix.orgcassianistefano joined the room.15:55:40
@rick:matrix.ciphernetics.nlMindavi joined the room.18:00:46
9 Nov 2025
@9hp71n:matrix.orgghpzin (moved to @ghpzin:envs.net) changed their display name from ghpzin to ghpzin (moved to @ghpzin:envs.net).15:03:44
10 Nov 2025
@tomberek:matrix.orgtomberek John Ericson: https://hydra.nixos-cuda.org/project/nix 03:21:46
@Ericson2314:matrix.orgJohn Ericson tomberek: nice! 03:23:50
@tomberek:matrix.orgtomberekCUDA team's Hydra. Also added the Oxide builders to it.03:24:42
@Ericson2314:matrix.orgJohn Ericson tomberek: very good! I guess we'll need an i686 builder heh (or it is time to drop that entirely?) 03:28:45
@Ericson2314:matrix.orgJohn Ericsonit's good we can actually look at the eval errors nwo03:28:53
@Ericson2314:matrix.orgJohn Ericsonper PR03:28:58
@Ericson2314:matrix.orgJohn Ericsonand think about these things some more03:29:03
@tomberek:matrix.orgtomberekWe can either hook up the GitHub PR integration or just do it manually for a bit. (Or make a CLI tool and API it....... hrm...)03:30:36
@Ericson2314:matrix.orgJohn EricsonI tried to set up mege queues for hnix store and failed horribly lol --- github is hard!03:32:35
@friedow:beeper.com@friedow:beeper.com left the room.08:20:15
@roberthensing:matrix.orgroberthready for merge: https://github.com/NixOS/flake-compat/pull/7711:26:46
@fzakaria:one.ems.hostfzakariaI have been swamped with new job but I miss coding with you guys :(16:49:49
@fzakaria:one.ems.hostfzakaria* I have been swamped with new job but I miss coding with you all :(16:49:54
@Ericson2314:matrix.orgJohn Ericson
From 42645063302e328e26360cb08baceb5107fbfa8c Mon Sep 17 00:00:00 2001
From: Eelco Dolstra <edolstra@gmail.com>
Date: Mon, 3 Mar 2025 13:10:08 +0100
Subject: [PATCH] Imply --offline during tab completion

Previously, if you don't have Internet connectivity, tab completion
might try to fetch the flake registry, e.g.

  $ NIX_GET_COMPLETIONS=4 nix build -vvvvv --offline /home/eelco/De
  evaluating file '<nix/derivation-internal.nix>'
  downloading 'https://channels.nixos.org/flake-registry.json'...
  warning: error: unable to download 'https://channels.nixos.org/flake-registry.json': Could not resolve hostname (6) Could not resolve host: channels.nixos.org; retrying in 294 ms
  warning: error: unable to download 'https://channels.nixos.org/flake-registry.json': Could not resolve hostname (6) Could not resolve host: channels.nixos.org; retrying in 541 ms
  warning: error: unable to download 'https://channels.nixos.org/flake-registry.json': Could not resolve hostname (6) Could not resolve host: channels.nixos.org; retrying in 1230 ms
  warning: error: unable to download 'https://channels.nixos.org/flake-registry.json': Could not resolve hostname (6) Could not resolve host: channels.nixos.org; retrying in 2285 ms
  warning: error: unable to download 'https://channels.nixos.org/flake-registry.json': Could not resolve hostname (6) Could not resolve host: channels.nixos.org; using cached version
---
 src/nix/main.cc | 32 +++++++++++++++++++++-----------
 1 file changed, 21 insertions(+), 11 deletions(-)

diff --git a/src/nix/main.cc b/src/nix/main.cc
index 74d22e4336..b75e49cc3d 100644
--- a/src/nix/main.cc
+++ b/src/nix/main.cc
@@ -86,6 +86,19 @@ static bool haveInternet()
 #endif
 }

+static void disableNet()
+{
+    // FIXME: should check for command line overrides only.
+    if (!settings.useSubstitutes.overridden)
+        settings.useSubstitutes = false;
+    if (!settings.tarballTtl.overridden)
+        settings.tarballTtl = std::numeric_limits<unsigned int>::max();
+    if (!fileTransferSettings.tries.overridden)
+        fileTransferSettings.tries = 0;
+    if (!fileTransferSettings.connectTimeout.overridden)
+        fileTransferSettings.connectTimeout = 1;
+}
+
 std::string programPath;

 struct NixArgs : virtual MultiCommand, virtual MixCommonArgs, virtual RootArgs
@@ -482,6 +495,12 @@ void mainWrapped(int argc, char ** argv)
         }
     });

+    if (getEnv("NIX_GET_COMPLETIONS"))
+        /* Avoid fetching stuff during tab completion. We have to this
+           early because we haven't checked `haveInternet()` yet
+           (below). */
+        disableNet();
+
     try {
         auto isNixCommand = std::regex_search(programName, std::regex("nix$"));
         auto allowShebang = isNixCommand && argc > 1;
@@ -525,17 +544,8 @@ void mainWrapped(int argc, char ** argv)
         args.useNet = false;
     }

-    if (!args.useNet) {
-        // FIXME: should check for command line overrides only.
-        if (!settings.useSubstitutes.overridden)
-            settings.useSubstitutes = false;
-        if (!settings.tarballTtl.overridden)
-            settings.tarballTtl = std::numeric_limits<unsigned int>::max();
-        if (!fileTransferSettings.tries.overridden)
-            fileTransferSettings.tries = 0;
-        if (!fileTransferSettings.connectTimeout.overridden)
-            fileTransferSettings.connectTimeout = 1;
-    }
+    if (!args.useNet)
+        disableNet();

     if (args.refresh) {
         settings.tarballTtl = 0;
--
2.50.1
17:47:02
@djspacewhale:4d2.org@djspacewhale:4d2.org left the room.19:05:26
@Ericson2314:matrix.orgJohn Ericson lovesegfault: git range-diff 14c70d08071093d81d4d614d0e36bbd1db19cf24^..14c70d08071093d81d4d614d0e36bbd1db19cf24 273f7a08421f763788e4c214cca165868617480f^..273f7a08421f763788e4c214cca165868617480f 19:36:25
@Ericson2314:matrix.orgJohn Ericsonreviewing your stuff19:36:27

Show newer messages


Back to Room ListRoom Version: 6