!VRULIdgoKmKPzJZzjj:nixos.org

Nix Hackers

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

Load older messages


SenderMessageTime
9 Oct 2021
@trofi:matrix.orgtrofi Filed https://github.com/NixOS/nix/issues/5367 for slow .doi fetch phase. 20:37:36
10 Oct 2021
@balsoft:balsoft.rubalsoft

With nix (Nix) 2.5pre20211008_01e9f04 I'm getting

error: store path '/nix/store/5b3q9s0yima9g8lyfqk7f4l8wkgz5xaw-himalaya-crate2nix' is not allowed to have references

This seems like a regression since it used to build just fine just a week ago.

09:43:07
@tomberek:matrix.orgtomberekDoes turning on ca-references help?14:46:26
@balsoft:balsoft.rubalsoft "turning on" as in adding to experimental-features ? 15:17:57
@balsoft:balsoft.rubalsoftIf so, no, doesn't help15:23:11
@tomberek:matrix.orgtomberekHrm. How can I re-create the bug? Got a flake or script?15:55:45
@balsoft:balsoft.rubalsoftYep, a flake15:55:53
@balsoft:balsoft.rubalsoft github:soywod/himalaya 15:56:03
@balsoft:balsoft.rubalsoft Or github:balsoft/simple-osd-daemons 15:56:29
@balsoft:balsoft.rubalsoft
In reply to @tomberek:matrix.org
Hrm. How can I re-create the bug? Got a flake or script?
It works on 2.4pre20211001_4f49615
16:17:15
@balsoft:balsoft.rubalsoftOk, so the problem is almost definitely 4806f2f6b0fd2cae401b89fe19d8c528ffd88b5f16:21:38
@tomberek:matrix.orgtomberekIs this doing IFD?16:32:33
@balsoft:balsoft.rubalsoftYes16:32:45
@balsoft:balsoft.rubalsoft It generates a Cargo.nix file from Cargo.toml and then imports that file 16:32:57
@tomberek:matrix.orgtomberekokay, i've recreated with that flake. can we re-create with a minimal IFD example to confirm that is the issue?16:44:40
@balsoft:balsoft.rubalsoftHm, let me try16:45:42
@balsoft:balsoft.rubalsoft

Ok, simple IFD works:

nix-repl> import (pkgs.writeText "file.nix" "{}")
{ }
16:46:13
@balsoft:balsoft.rubalsoft

And even this works:

nix-repl> import (pkgs.writeText "file.nix" ''{ foo = "${pkgs.hello}"; }'')
{ foo = "/nix/store/15c875mwri8xx3s0gqsdkdw7sqqyv55c-hello-2.10"; }
16:46:46
@balsoft:balsoft.rubalsoftSo I think it's a bit more intricate16:46:51
@balsoft:balsoft.rubalsoftAha16:47:01
@balsoft:balsoft.rubalsoftHmm, no16:48:09
@balsoft:balsoft.rubalsoft Even referencing $out works 16:48:13
@balsoft:balsoft.rubalsoft
nix-repl> import (pkgs.runCommand "file.nix" {} ''echo "{ foo = $out; }" > $out'')
{ foo = /nix/store/56zm7p8bpnrxhpbw8plaxwngdr6y094y-file.nix; }
16:48:26
@balsoft:balsoft.rubalsoftI wonder what's special about crate2nix16:48:44
@tomberek:matrix.orgtomberekthis is happening in a primop, filterSource or path16:49:19
@balsoft:balsoft.rubalsoftYeah, I saw the commit message16:49:34
@tomberek:matrix.orgtomberek"addPath" is used by those, perhaps crate2nix uses one of them?16:49:38
@balsoft:balsoft.rubalsoftSo I'm looking for those in crate2nix16:49:38
@balsoft:balsoft.rubalsoftInterestingly, once it has been built once using older nix it then works with newer nix16:50:48
@balsoft:balsoft.rubalsoftAlthough I guess this is down to flake caching16:50:54

There are no newer messages yet.


Back to Room ListRoom Version: 6