!9IQChSjwSHXPPWTa:lix.systems

Lix

627 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-rooms196 Servers

Load older messages


SenderMessageTime
8 Oct 2024
@charles:computer.surgeryCharlesno problem lol22:23:50
@charles:computer.surgeryCharlesi've gotten this to work before but it felt super hacky so i thought i'd ask to see if there was a better way22:24:06
@charles:computer.surgeryCharles okay so maybe what i want is like nix path-info --recursive --derivation "$(nix path-info --derivation .#foo)" 22:25:20
@charles:computer.surgeryCharles
In reply to @charles:computer.surgery
i've gotten this to work before but it felt super hacky so i thought i'd ask to see if there was a better way
(https://gitlab.computer.surgery/matrix/grapevine/-/blob/5a490a4397f0c6a36dab1cb631dadc67a849deab/bin/nix-build-and-cache#L26-33)
22:28:02
@charles:computer.surgeryCharles
In reply to @charles:computer.surgery
okay so maybe what i want is like nix path-info --recursive --derivation "$(nix path-info --derivation .#foo)"
hmm that misses some things that my script gets; notably this only outputs .drv paths
22:28:43
@benjamin:computer.surgerybenjamin the nix path-info --recursive --derivation thing outputs the .drv store path for xshmfence, but not the output paths 22:28:47
@benjamin:computer.surgerybenjaminI think I may have a misunderstanding of what the build closure is as well22:29:04
@benjamin:computer.surgerybenjamin I ended up just uhh... nix copy $buildInputs --to ... 22:29:41
@lily:lily.flowersLily Foster
In reply to @charles:computer.surgery
okay so maybe what i want is like nix path-info --recursive --derivation "$(nix path-info --derivation .#foo)"
i think you can technically --derivation on output paths too, it just looks up deriver and operates on that when given a store path
22:29:54
@lily:lily.flowersLily Foster
In reply to @lily:lily.flowers
i think you can technically --derivation on output paths too, it just looks up deriver and operates on that when given a store path
(this is also something i know less well, and i normally would look up before claiming if i wasn't hurting right now, so uh again probably double check the things i'm saying)
22:35:03
@charles:computer.surgeryCharlesi hope the hurting goes away soon22:35:40
@lily:lily.flowersLily Fosteryeah, me too (allegedly it should be by end of week)22:36:34
@jade_:matrix.org@jade_:matrix.org
In reply to @benjamin:computer.surgery
the nix path-info --recursive --derivation thing outputs the .drv store path for xshmfence, but not the output paths
oh, try ^* at the end of the installable?
22:36:49
@jade_:matrix.org@jade_:matrix.org
In reply to @lily:lily.flowers
i think you can technically --derivation on output paths too, it just looks up deriver and operates on that when given a store path
this matches my recollection
22:38:08
@jade_:matrix.org@jade_:matrix.org
In reply to @benjamin:computer.surgery
I think I may have a misunderstanding of what the build closure is as well
hm. so the build closure is the runtime closure of the direct dependencies
22:38:47
@jade_:matrix.org@jade_:matrix.orgthis is probably why you are getting big time confused22:38:57
@jade_:matrix.org@jade_:matrix.org
In reply to @benjamin:computer.surgery
I think I may have a misunderstanding of what the build closure is as well
* hm. so the build closure is the runtime closure of the direct dependencies' outputs
22:39:02
@jade_:matrix.org@jade_:matrix.orgbut what is a "build closure" for a nixos machine, meaningfully? i dont know! 22:39:27
@jade_:matrix.org@jade_:matrix.org like, the build closure could be everything required to build everything on the system entirely from source 22:39:59
@jade_:matrix.org@jade_:matrix.orgbut you are assuming some things will always be in binary cache and will never be built from source22:40:09
@charles:computer.surgeryCharles
In reply to @jade_:matrix.org
like, the build closure could be everything required to build everything on the system entirely from source
that's what i would expect
22:40:28
@lily:lily.flowersLily Foster
In reply to @jade_:matrix.org
but what is a "build closure" for a nixos machine, meaningfully? i dont know!
i guess this would be the semantic intent for that: https://github.com/NixOS/nixpkgs/blob/e8597a0de13d645c5909f0c09dfabdbf63a88a30/nixos/modules/system/activation/top-level.nix#L88
22:40:57
@jade_:matrix.org@jade_:matrix.org so is the build closure "everything required to realise all the derivations in this that dont exist in a binary cache"? there is a command for that somewhere in the legacy cli, hopefully not only exposed via nix-env but presence in binary cache is exposed via nix-env 22:40:58
@jade_:matrix.org@jade_:matrix.org
In reply to @lily:lily.flowers
i guess this would be the semantic intent for that: https://github.com/NixOS/nixpkgs/blob/e8597a0de13d645c5909f0c09dfabdbf63a88a30/nixos/modules/system/activation/top-level.nix#L88
fuck, this is the cursed thing
22:41:17
@jade_:matrix.org@jade_:matrix.orgiirc22:41:22
@lily:lily.flowersLily Foster
In reply to @jade_:matrix.org
fuck, this is the cursed thing
me too
22:41:30
@jade_:matrix.org@jade_:matrix.orgroberth was complaining about this being a thing22:41:31
@lily:lily.flowersLily Foster
In reply to @jade_:matrix.org
roberth was complaining about this being a thing
oh?
22:41:38
@jade_:matrix.org@jade_:matrix.orgthe string context for drvPath pulls in excessive things iirc?22:42:06
@benjamin:computer.surgerybenjamin
In reply to@jade_:matrix.org
oh, try ^* at the end of the installable?
"error: path ... does not exist in the store". likely has to do with me doing cross-compilation shenanigans right now
22:42:43

Show newer messages


Back to Room ListRoom Version: 10