| 20 Oct 2025 |
Sofie 🏳️⚧️ (she/her) | 😇 | 17:16:10 |
hexa | remove it? | 17:32:49 |
bandithedoge | is there an offtopic room yet? | 17:33:33 |
just1602 | https://matrix.to/#/!f7ANyFfiAJtbgM98Pk:katesiria.org?via=lix.systems&via=matrix.org&via=bark.lgbt | 17:34:11 |
| tiferrei changed their display name from Tiago Ferreira to tiferrei. | 17:34:14 |
bandithedoge | thanks | 17:34:54 |
Jassuko | Oh, 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. :D | 17:39:58 |
Jassuko | Kinda "lol, no way this is going to work" yolo moment, but here we are. :D | 17:41:08 |
| @myujiku:matrix.org left the room. | 18:47:51 |
leona | yeah interestingly 24.05->25.05 is reliably not possible with Nix | 18:48:47 |
K900 | Huh, why? | 18:53:38 |
raitobezarius | leona: this got me semi curious, Jassuko does anyone of you has the exact error you receive? | 18:53:51 |
raitobezarius | i want to know if my bet of what it is — is correct or not | 18:54:03 |
leona | let me check, I can probably get it | 18:54:10 |
raitobezarius | thx | 18:54:16 |
leona | path '/nix/store/cy03cdv5c7a7chnm0zq263620invrmd8-linux-6.12.35-modules-shrunk/lib' is not in the Nix store
| 18:57:19 |
raitobezarius | alright, thanks | 18:58:18 |
leona | we got that reliably at work on every VM (Nix 2.18.8 on 24.05) | 18:58:34 |
leona | with a step on 24.11 it works just fine | 18:58:48 |
raitobezarius | this is an exportReferencesGraph that happened between 2.18.5 and got fixed by 2.18.9 | 18:59:27 |
raitobezarius | * this is an exportReferencesGraph bug that happened between 2.18.5 and got fixed by 2.18.9 | 18:59:30 |
raitobezarius | bug exacerbated by nixpkgs in https://github.com/NixOS/nixpkgs/pull/372931 | 18:59:59 |
K900 | Oh god | 19:00:15 |
K900 | It's that fucking cppnix bug | 19:00:17 |
raitobezarius | 0812ddeb09f284da134ad2c35a7175b46b7e5a88 | 19:03:19 |
raitobezarius | is the fix in cppnix | 19:03:21 |
raitobezarius | 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 | * 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 | actually, i should correct myself | 19:05:24 |
raitobezarius | happened since 2.4, fixed in 2.18.9 | 19:05:32 |