!VRULIdgoKmKPzJZzjj:nixos.org

Nix Hackers

892 Members
For people hacking on the Nix package manager itself190 Servers

Load older messages


SenderMessageTime
5 Apr 2025
@divyaranjan:matrix.orgDivya
In reply to @k900:0upti.me
That's more of a #Nixpkgs / NixOS contributions question
Okay, apologies!
08:16:14
@emilazy:matrix.orgemily it's bootstrapped from bindist, but yeah see #haskell:nixos.org 08:16:23
@emilazy:matrix.orgemilyI think full source bootstrap of GHC is still largely theoretical08:16:35
@zexu:matrix.orgzexu joined the room.13:06:41
@tinybronca:sibnsk.net@tinybronca:sibnsk.net left the room.15:30:20
6 Apr 2025
@Las:matrix.orgLas I’m doing nix derivation show, then changing it a bit, then nix derivation add, but when I nix build my changed drv, it just outputs the drv as the output instead of building it? Bug somewhere? I assume the issue is my changes aren’t valid but I don’t get any errors and the documentation isn’t quite clear on it. 11:14:26
@Las:matrix.orgLasI assume it’s my placeholder paths?11:14:48
@Las:matrix.orgLasHonestly it’s not clear to me why the output path is in the derivation at all11:18:56
@Las:matrix.orgLasDoing content addressed drvs only btw11:19:11
@flokli:matrix.orgflokliYou shouldn't be manually adding your own derivations, especially if you're not also calculating Output paths (correctly)11:24:22
@flokli:matrix.orgflokliThe only "official" way to do is by writing nix code, and having the evaluator emit it. For everything else, you're off the well-tested path.11:25:10
@flokli:matrix.orgflokliIt's unfortunate derivations are added as aterm into the store in first place. IMHO they should only be valid for the lifetime of the evaluation itself, and not be put in the store 11:26:05
@sinan:sinanmohd.comsinan changed their profile picture.11:32:59
@emilazy:matrix.orgemilykind of at odds with the dynamic-derivations model, right?11:51:49
@emilazy:matrix.orgemily(not saying that I necessarily disagree, just that it seems like there's a commitment to some serialized derivation form at this point)11:52:21
@p14:matrix.orgp14
In reply to @roberthensing:matrix.org
Maybe nix.overrideAttrs could throw a useful error referring to a monolithic nixVersions.nix_mono package to ease the transition
Just hit this and would have appreciated such an error.
11:54:32
@p14:matrix.orgp14Actually struggling a bit to untangle what is going on and why I can’t apply a patch. Does nix mono exist yet?11:55:32
@Las:matrix.orgLas
In reply to @flokli:matrix.org
You shouldn't be manually adding your own derivations, especially if you're not also calculating Output paths (correctly)
I’m doing dyn drvs
12:39:18
@Las:matrix.orgLasI don’t want to depend on the nix evaluator in my drv12:39:27
@emilazy:matrix.orgemily (are you sure your problem is not just missing ^*?) 12:51:09
@Las:matrix.orgLas
In reply to @emilazy:matrix.org
(are you sure your problem is not just missing ^*?)
What
13:25:30
@Las:matrix.orgLasI never considered that13:25:41
@Las:matrix.orgLasWhy would you need that13:25:46
@emilazy:matrix.orgemily nix build /nix/store/foo.drv builds that drv, …^out builds that output 13:25:52
@emilazy:matrix.orgemilythere was a warning for it for many releases but it got removed13:25:58
@emilazy:matrix.orgemily the idea is that nix build X always produces X 13:26:03
@emilazy:matrix.orgemily so nix build /nix/build/non-drv-store-path will try to substitute that path, e.g. 13:26:16
@Las:matrix.orgLasMakes sense13:37:12
@Las:matrix.orgLas I think it’s a misnomer 13:37:44
@Las:matrix.orgLasShould be nix realize13:37:49

Show newer messages


Back to Room ListRoom Version: 6