!VRULIdgoKmKPzJZzjj:nixos.org

Nix Package Manager development

859 Members
For people hacking on Nix: https://github.com/NixOS/nix Nix maintainers can be reached here.185 Servers

Load older messages


SenderMessageTime
25 Oct 2025
@lovesegfault:matrix.orglovesegfaulthttps://github.com/NixOS/nix/pull/1435803:56:03
@imxkiyo:matrix.orgImxKiyo joined the room.11:29:22
26 Oct 2025
@levigross:matrix.org@levigross:matrix.org left the room.16:50:35
@fzakaria:one.ems.hostfzakariawhat is this failure22:35:45
@fzakaria:one.ems.hostfzakaria

error: derivation '/nix/store/apdpsp8p798gz9a551bf64z6j1hrna6x-pre-commit-4.0.1.drv' specifies a sandbox profile, but this is only allowed when 'sandbox' is 'relaxed'

22:35:46
@winter:catgirl.cloudWinterthe package requires a sandboxProfile to be built on macOS22:37:20
@winter:catgirl.cloudWinterso you need to lower your sandbox restriction to allow that22:37:28
@fzakaria:one.ems.hostfzakariahmm; i updated nixpkgs in the flake in CppNix22:37:48
@fzakaria:one.ems.hostfzakariasomething i guess in nixpkgs got changed; doesn't say what though22:38:03
@winter:catgirl.cloudWinter nix derivation show on it? 22:39:10
@winter:catgirl.cloudWinter not sure what you mean by this, it’s pre-commit 22:39:23
@winter:catgirl.cloudWinterin nixpkgs@25.0522:39:28
@fzakaria:one.ems.hostfzakariaoh pre-commit itself; i thought maybe a drv it depended on22:39:49
@fzakaria:one.ems.hostfzakariahttps://github.com/NixOS/nixpkgs/blob/nixos-25.05/pkgs/by-name/pr/pre-commit/package.nix Nothing looks out of the ordinary22:41:14
@winter:catgirl.cloudWinter i don’t see a sandboxProfile there indeed — can i get a nix derivation show please? :) 22:51:36
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)Hmmm, did python packages switch to structuredAttrs?22:53:18
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)I'm looking at the code that this message originates from and I'm suspicious22:53:44
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)

Ah, I think I know what's up. pre-commit needs dotnet, but it has:

    # fixes: Could not load ICU data. UErrorCode: 2
    propagatedSandboxProfile = lib.optionalString stdenv.hostPlatform.isDarwin ''
      (allow file-read* (subpath "/usr/share/icu"))
      (allow file-read* (subpath "/private/var/db/mds/system"))
      (allow mach-lookup (global-name "com.apple.SecurityServer")
                         (global-name "com.apple.system.opendirectoryd.membership"))
    '';

23:00:07
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)
      "__sandboxProfile": "(allow file-read* (subpath \"/usr/share/icu\"))\n(allow file-read* (subpath \"/private/var/db/mds/system\"))\n(allow mach-lookup (global-name \"com.apple.SecurityServer\")\n                   (global-name \"com.apple.system.opendirectoryd.membership\"))\n ",
23:02:47
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)Really weird that it gets propagated that far: https://github.com/NixOS/nixpkgs/blob/5754cad82cf6180cfc5f147b32dd111fd4222c8e/pkgs/development/compilers/dotnet/build-dotnet.nix#L186-L19123:03:57
@winter:catgirl.cloudWinternot exactly that surprising?23:05:39
27 Oct 2025
@volth:matrix.orgvolth

How would you read a <| b |> c ?

(a <| b) |> c or a <| (b |> c)

Currently it is syntax error for some reason.

02:26:41
@volth:matrix.orgvolth I am for the second, e.g.
fetchurl <| [repo1 repo2 repo2] |> (repo: "${repo}/someurl.tar.gz")
02:26:46
@volth:matrix.orgvolth

chatgpt says

In languages that support both (e.g. F#), the binding strength is such that:

<| has lower precedence (binds less tightly) than |>.

Both are right-associative.

so the verbot to use them both in the same expression is unique to Nix

02:32:04
@fzakaria:one.ems.hostfzakaria Sergei Zimmerman (xokdvium): i was AFK -- i saw the message; not sure what the fix is 03:26:56
@fzakaria:one.ems.hostfzakariahow did you track it down to dotnet ? Should I strip out dotnet from it ?03:27:27
@fzakaria:one.ems.hostfzakaria

ok I did

    extra_nix_config: ${{ matrix.os == 'darwin' && 'sandbox = "relaxed"' || 'sandbox = true' }}
03:38:45
@brainworms2002:matrix.orgSunny || ☀️🪱 joined the room.14:21:57
@xokdvium:matrix.orgSergei Zimmerman (xokdvium) Philip Taron (UTC-8): we should do https://github.com/NixOS/nixpkgs/pull/396451 in nix repository. GHA is getting barely enough attention. I'd appreciate your expertise from nixpkgs CI. 16:21:31
@fzakaria:one.ems.hostfzakaria I noticed when I put the wrong hash for a FOD -- the nix build takes way longer than when it's correct 18:55:58

Show newer messages


Back to Room ListRoom Version: 6