!9IQChSjwSHXPPWTa:lix.systems

Lix

1102 Members
Lix user channel. Feel free to discuss on-topic issues here and give each other help. For matrix.to links to the rest of the Lix channels, see: https://wiki.lix.systems/books/lix-organisation/page/matrix-rooms294 Servers

Load older messages


SenderMessageTime
20 Oct 2025
@leona:leona.isleona
path '/nix/store/cy03cdv5c7a7chnm0zq263620invrmd8-linux-6.12.35-modules-shrunk/lib' is not in the Nix store
18:57:19
@raitobezarius:matrix.orgraitobezariusalright, thanks18:58:18
@leona:leona.isleonawe got that reliably at work on every VM (Nix 2.18.8 on 24.05)18:58:34
@leona:leona.isleonawith a step on 24.11 it works just fine18:58:48
@raitobezarius:matrix.orgraitobezariusthis is an exportReferencesGraph that happened between 2.18.5 and got fixed by 2.18.918:59:27
@raitobezarius:matrix.orgraitobezarius* this is an exportReferencesGraph bug that happened between 2.18.5 and got fixed by 2.18.918:59:30
@raitobezarius:matrix.orgraitobezariusbug exacerbated by nixpkgs in https://github.com/NixOS/nixpkgs/pull/37293118:59:59
@k900:0upti.meK900 Oh god 19:00:15
@k900:0upti.meK900 It's that fucking cppnix bug 19:00:17
@raitobezarius:matrix.orgraitobezarius0812ddeb09f284da134ad2c35a7175b46b7e5a8819:03:19
@raitobezarius:matrix.orgraitobezariusis the fix in cppnix19:03:21
@raitobezarius:matrix.orgraitobezarius
commit 0812ddeb09f284da134ad2c35a7175b46b7e5a88
Author: Alyssa Ross <hi@alyssa.is>
Date:   Wed Apr 17 21:51:59 2024 +0200

    Fix exportReferencesGraph when given store subpath
    
    With Nix 2.3, it was possible to pass a subpath of a store path to
    exportReferencesGraph:
    
            with import <nixpkgs> {};
    
            let
              hello = writeShellScriptBin "hello" ''
                echo ${toString builtins.currentTime}
              '';
            in
    
            writeClosure [ "${hello}/bin/hello" ]
    
    This regressed with Nix 2.4, with a very confusing error message, that
    presumably indicates it was unintentional:
    
            error: path '/nix/store/3gl7kgjr4pwf03f0x70dgx9ln3bhl7zc-hello/bin/hello' is not in the Nix store
    
    (cherry picked from commit 0774e8ba33c060f56bad3ff696796028249e915a)


src/libstore/parsed-derivations.cc
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

──────────────────────────────────────────────────────────────────────────────────────┐
151: std::optional<nlohmann::json> ParsedDerivation::prepareStructuredAttrs(Store & s │
──────────────────────────────────────────────────────────────────────────────────────┘
        for (auto i = e->begin(); i != e->end(); ++i) {
            StorePathSet storePaths;
            for (auto & p : *i)
                storePaths.insert(store.parseStorePath(p.get<std::string>()));
                storePaths.insert(store.toStorePath(p.get<std::string>()).first);
            json[i.key()] = store.pathInfoToJSON(
                store.exportReferences(storePaths, inputPaths), false, true);
        }
19:03:40
@raitobezarius:matrix.orgraitobezarius *
commit 0812ddeb09f284da134ad2c35a7175b46b7e5a88
Author: Alyssa Ross <hi@alyssa.is>
Date:   Wed Apr 17 21:51:59 2024 +0200

    Fix exportReferencesGraph when given store subpath
    
    With Nix 2.3, it was possible to pass a subpath of a store path to
    exportReferencesGraph:
    
            with import <nixpkgs> {};
    
            let
              hello = writeShellScriptBin "hello" ''
                echo ${toString builtins.currentTime}
              '';
            in
    
            writeClosure [ "${hello}/bin/hello" ]
    
    This regressed with Nix 2.4, with a very confusing error message, that
    presumably indicates it was unintentional:
    
            error: path '/nix/store/3gl7kgjr4pwf03f0x70dgx9ln3bhl7zc-hello/bin/hello' is not in the Nix store
    
    (cherry picked from commit 0774e8ba33c060f56bad3ff696796028249e915a)

diff --git a/src/libstore/parsed-derivations.cc b/src/libstore/parsed-derivations.cc
index cc4a94fab..96ed15518 100644
--- a/src/libstore/parsed-derivations.cc
+++ b/src/libstore/parsed-derivations.cc
@@ -151,7 +151,7 @@ std::optional<nlohmann::json> ParsedDerivation::prepareStructuredAttrs(Store & s
         for (auto i = e->begin(); i != e->end(); ++i) {
             StorePathSet storePaths;
             for (auto & p : *i)
-                storePaths.insert(store.parseStorePath(p.get<std::string>()));
+                storePaths.insert(store.toStorePath(p.get<std::string>()).first);
             json[i.key()] = store.pathInfoToJSON(
                 store.exportReferences(storePaths, inputPaths), false, true);
         }
19:04:05
@raitobezarius:matrix.orgraitobezariusactually, i should correct myself19:05:24
@raitobezarius:matrix.orgraitobezariushappened since 2.4, fixed in 2.18.919:05:32
@raitobezarius:matrix.orgraitobezarius(and we also had that bug — https://gerrit.lix.systems/c/lix/+/867)19:08:01
@raitobezarius:matrix.orgraitobezariusbut i don't remember if it made it into any release of Lix19:08:13
@quadradical:federated.nexusQuadRadical (Ping)btw raito19:08:23
@quadradical:federated.nexusQuadRadical (Ping)any news on that issue with the freezee?19:08:33
@quadradical:federated.nexusQuadRadical (Ping)* any news on that issue with the freeze?19:08:36
@raitobezarius:matrix.orgraitobezariusyeah, i'm really sorry, i was resting this weekend and well $JOB was busy today19:11:45
@raitobezarius:matrix.orgraitobezarius QuadRadical (Ping): can you point me again the repo and the instruction to reproduce? 19:11:52
@raitobezarius:matrix.orgraitobezariusI will take a look right now19:11:55
@raitobezarius:matrix.orgraitobezarius* yeah, i'm really sorry, i was resting [actually a lie: i was in a conference and busy again] this weekend and well $JOB was busy today19:12:12
@quadradical:federated.nexusQuadRadical (Ping) sure! 19:33:49
@quadradical:federated.nexusQuadRadical (Ping)https://codeberg.org/polyphony/chorus19:33:57
@quadradical:federated.nexusQuadRadical (Ping) NIX_REMOTE=local sudo nix build --no-sandbox .#checks.x86_64-linux.nextest 19:36:00
@raitobezarius:matrix.orgraitobezariushow does that work?19:41:20
@raitobezarius:matrix.orgraitobezariusi don't see a flake.nix19:41:22
@raitobezarius:matrix.orgraitobezarius Henry-Hiles/chorus:dev 19:41:51

Show newer messages


Back to Room ListRoom Version: 10