!VRULIdgoKmKPzJZzjj:nixos.org

Nix Hackers

987 Members
For people hacking on the Nix package manager itself209 Servers

Load older messages


SenderMessageTime
7 Oct 2021
@tomberek:matrix.orgtomberek trofi: can you look at #5350, i'm trying to figure out what went wrong 21:14:41
@trofi:matrix.orgtrofi tomberek: sure! nix-shell -A pkgsStatic.nixUnstable; shell> genericBuild reproduces failure locally as well. 21:19:27
@tomberek:matrix.orgtomberek I’ll try a re-revert. 21:36:12
8 Oct 2021
@trofi:matrix.orgtrofi https://github.com/NixOS/nix/pull/5354 fixes static linking for me. I think it's problem in recently added libstore-tests test. 06:18:46
@davidbmjr:matrix.orgdavidbmjr joined the room.16:26:47
9 Oct 2021
@Las:matrix.orgLas niksnut: What's the attitude towards adding Rust dependencies to Nix? 11:39:40
@ldesgoui:matrix.orgldesgouiI was interested in this a while ago, it looked like there was interest in using Rust in Nix, but the lack of a concrete plan meant the first attempt didn't really go anywhere and got in the way of other developments11:48:19
@ldesgoui:matrix.orgldesgouiI was hoping to make some time to figure some plan in which progress could be made in parallel, and when deemed appropriate, parts could be swapped to their Rust versions. From what I could tell, there would be at least some interest in contributing to such a project, as demonstrated by the existing "re-implementing Nix in Rust" projects11:55:11
@ldesgoui:matrix.orgldesgouiAlso have to mention that one of the pain points experienced in the first attempt, interfacing C++ and Rust+, should have gotten much better with the creation of https://cxx.rs11:56:14
@trofi:matrix.orgtrofiDid you notice that CA is somewhat slow when one throws a lot of rebuilds at it?19:11:52
@trofi:matrix.orgtrofi I found database side of slowness: https://github.com/NixOS/nix/pull/5366. But there is also downloading 'https://cache.nixos.org/realisations/sha256:... side of slowness. Does nix-daemon do those queries in parallel? It does not seem to saturate my slow internet connection with these queries. 19:13:16
@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

Show newer messages


Back to Room ListRoom Version: 6