!9IQChSjwSHXPPWTa:lix.systems

Lix

1107 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-rooms295 Servers

Load older messages


SenderMessageTime
20 Oct 2025
@hexa:lossy.networkhexaremove it?17:32:49
@bandithedoge:matrix.orgbandithedogeis there an offtopic room yet?17:33:33
@just1602:systemli.orgjust1602https://matrix.to/#/!f7ANyFfiAJtbgM98Pk:katesiria.org?via=lix.systems&via=matrix.org&via=bark.lgbt17:34:11
@tiferrei:tiferrei.comtiferrei changed their display name from Tiago Ferreira to tiferrei.17:34:14
@bandithedoge:matrix.orgbandithedogethanks17:34:54
@jassu:kumma.juttu.asiaJassukoOh, I forgot to mention. I dug up some older MiniPC that had Nixos 24.05 or .11 stable channel in it. I tried to get it to current unstable which failed with a weird substitution failure. I noticed it had non-lix nix in use so decided to try run the nixos-rebuild within a nix-shell with lix. To my surprise it actually worked. Lix FTW yet again. :D17:39:58
@jassu:kumma.juttu.asiaJassukoKinda "lol, no way this is going to work" yolo moment, but here we are. :D17:41:08
@myujiku:matrix.org@myujiku:matrix.org left the room.18:47:51
@leona:leona.isleonayeah interestingly 24.05->25.05 is reliably not possible with Nix18:48:47
@k900:0upti.meK900 Huh, why? 18:53:38
@raitobezarius:matrix.orgraitobezarius leona: this got me semi curious, Jassuko does anyone of you has the exact error you receive? 18:53:51
@raitobezarius:matrix.orgraitobezariusi want to know if my bet of what it is — is correct or not18:54:03
@leona:leona.isleonalet me check, I can probably get it18:54:10
@raitobezarius:matrix.orgraitobezariusthx18:54:16
@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

Show newer messages


Back to Room ListRoom Version: 10