!9IQChSjwSHXPPWTa:lix.systems

Lix

1120 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-rooms302 Servers

Load older messages


SenderMessageTime
30 Jan 2026
@raitobezarius:matrix.orgraitobezariusonce per line yes01:12:23
@raitobezarius:matrix.orgraitobezariusit appends01:12:24
@raitobezarius:matrix.orgraitobezarius
    /// Extra configuration lines for `/etc/nix.conf`
    #[cfg_attr(feature = "cli", clap(long, action = ArgAction::Append, num_args = 0.., env = "NIX_INSTALLER_EXTRA_CONF", global = true))]
    pub extra_conf: Vec<UrlOrPathOrString>,
01:12:33
@raitobezarius:matrix.orgraitobezarius Winter i dont know if your woes with systemd units building moved forward somehow but 01:17:50
@raitobezarius:matrix.orgraitobezarius we merged https://git.lix.systems/lix-project/lix/commit/56988d860593a5fd8153d02a0ca5469508378626 and there's more to come 01:17:54
@raitobezarius:matrix.orgraitobezariusif those doesn't fix your problem, i think it may reside somewhere else01:18:03
@raitobezarius:matrix.orgraitobezarius (though i slightly doubt that you are that much running into drv overheads) 01:18:14
@lotte:chir.rsLotte (it/its)/Cinny (she/her) θΔ& changed their profile picture.07:53:57
@sofiedotcafe:matrix.orgSofie 🏳️‍⚧️ (she/her)So, how did u extract initrd files?08:34:30
@sofiedotcafe:matrix.orgSofie 🏳️‍⚧️ (she/her)I need to get a service file from one08:34:36
@sofiedotcafe:matrix.orgSofie 🏳️‍⚧️ (she/her)nvm figured it out08:42:35
@rosssmyth:matrix.orgrosssmyth

I found something that is messed up with flakes:

  1. Write src = ./.;
  2. On another line write something like something = finalAttrs.src
  3. Run nom build

It shows that finalAttrs.src does not match the $src that is unpacked for some reason.

The log outputs will say something like

unpacking source archive /nix/store/6vpcbgxb1lv4xb36i4z0wcns26qkqb0a-ss7yf0ysfsr45a1811bcyvpkblpnhk1q-source
source root is ss7yf0ysfsr45a1811bcyvpkblpnhk1q-source

Notice that this looks like a store path made from a store path. It seems to be, as both store paths exist. But if you write something like:

echo "${finalAttrs.src}"

you will get:

ss7yf0ysfsr45a1811bcyvpkblpnhk1q-source

Since I rely on finalAttrs.src == $src I get a derivation failure. This can be fixed if I write something like src = self; from the flake outputs.

15:57:38
@rosssmyth:matrix.orgrosssmyth *

I found something that is weird:

  1. Write src = ./.;
  2. On another line write something like something = finalAttrs.src
  3. Run nom build

It shows that finalAttrs.src does not match the $src that is unpacked for some reason.

The log outputs will say something like

unpacking source archive /nix/store/6vpcbgxb1lv4xb36i4z0wcns26qkqb0a-ss7yf0ysfsr45a1811bcyvpkblpnhk1q-source
source root is ss7yf0ysfsr45a1811bcyvpkblpnhk1q-source

Notice that this looks like a store path made from a store path. It seems to be, as both store paths exist. But if you write something like:

echo "${finalAttrs.src}"

you will get:

ss7yf0ysfsr45a1811bcyvpkblpnhk1q-source

Since I rely on finalAttrs.src == $src I get a derivation failure. This can be fixed if I write something like src = self; from the flake outputs.

15:57:51
@rosssmyth:matrix.orgrosssmythNoticed this from a bug report on my library https://github.com/RossSmyth/press/issues/2015:58:05
@rosssmyth:matrix.orgrosssmyth *

I found something that is weird:

  1. Write src = ./.;
  2. On another line write something like something = finalAttrs.src
  3. Run nom build

It shows that finalAttrs.src does not match the $src that is unpacked for some reason.

The log outputs will say something like

unpacking source archive /nix/store/6vpcbgxb1lv4xb36i4z0wcns26qkqb0a-ss7yf0ysfsr45a1811bcyvpkblpnhk1q-source
source root is ss7yf0ysfsr45a1811bcyvpkblpnhk1q-source

Notice that this looks like a store path made from a store path. It seems to be, as both store paths exist. But if you write something like:

echo "${finalAttrs.src}"

you will get:

ss7yf0ysfsr45a1811bcyvpkblpnhk1q-source

Since I rely on finalAttrs.src == $src I get a derivation failure. This can be fixed if I write something like src = self; from the flake outputs, as then finalAttrs.src == $src in that case for some reason.

16:01:52
@rosssmyth:matrix.orgrosssmyth Definitely something flakey because running it without flakes it acts as expected (finalAttrs.src == $src) 16:18:08
@zimward:zimward.moezimward @fosdem changed their display name from zimward to zimward @fosdem.16:18:56
@raitobezarius:matrix.orgraitobezarius aloisw: you are super strong at rootcausing this sort of things ^, if you have some time (and desire), that'd be awesome ^
My bet is that this seems normal and is a stdenv machinery thing but not sure
19:50:05
@niko:nrab.lolniko ⚡️

I can't reproduce it using the old cli, I'll try flakes but I doubt it'll affect anything. FWIW this is the derivation I'm trying

{stdenvNoCC }:
stdenvNoCC.mkDerivation (finalAttrs: {
  pname = "repro";
  version = "1";
  src = ./.;
  lol = finalAttrs.src;
  buildPhase = ''
    echo lol = "$lol"
    echo lol = "${finalAttrs.src}"
  '';
  installPhase = ''
    touch $out
  '';
})

and the output is

Running phase: buildPhase
lol = /nix/store/jl7xm5g4yc8larsbyabf07db9p96ljrq-nix-repro
lol = /nix/store/jl7xm5g4yc8larsbyabf07db9p96ljrq-nix-repro
19:59:20
@niko:nrab.lolniko ⚡️I tried both with nixpkgs pinned in my config and with nixpkgs that's pinned in your repo19:59:39
@niko:nrab.lolniko ⚡️My lix commit is 7068cbf20:00:04
@encrypteddvjjrxv:x-hain.deφαггoт (he/him) changed their display name from Spectral (he/him) to Paггot (he/him).20:22:31
@encrypteddvjjrxv:x-hain.deφαггoт (he/him) changed their display name from Paггot (he/him) to φaггot (he/him).20:23:18
@encrypteddvjjrxv:x-hain.deφαггoт (he/him) changed their display name from φaггot (he/him) to Φaггot (he/him).20:24:14
@encrypteddvjjrxv:x-hain.deφαггoт (he/him) changed their display name from Φaггot (he/him) to Φαггot (he/him).20:24:51
@encrypteddvjjrxv:x-hain.deφαггoт (he/him) changed their display name from Φαггot (he/him) to φαггot (he/him).20:25:50
@encrypteddvjjrxv:x-hain.deφαггoт (he/him) changed their display name from φαггot (he/him) to φαггoт (he/him).20:26:19
@lillecarl:matrix.orglillecarl changed their profile picture.22:28:13
31 Jan 2026
@aloisw:julia0815.dealoisw The problem is that src (and consequently, also finalAttrs.src and something) are not strings, but paths. Similar to string interpolation, builtins.derivation will always copy paths to the store, even if they already happen to point into the store. So all of $src, $something and ${finalAttrs.src} will point at the double-hash path (no idea how you got something else for the latter, did a builtins.toString sneak in somehow?). On the other hand, you determine the name of the unpacked source using your stripHash function (https://github.com/RossSmyth/press/blob/d3eb2b2deee2116609f938b08fc86a48850b99c4/src/buildTypstDocument.nix#L18-L23), which calls builtins.baseNameOf which operates on the original path. 06:00:42
@dont.wanna.tell:matrix.orgMartin HäckerAnyone at Fosdem and would like to meet up?10:11:01

There are no newer messages yet.


Back to Room ListRoom Version: 10