!tDnwWRNkmmYtMXfaZl:nixos.org

Nix Language

1923 Members
Nix programming language357 Servers

Load older messages


SenderMessageTime
24 May 2021
@sternenseemann:systemli.orgsterni (he/him)I was thinking of derivations 11:24:12
@kevincox:matrix.orgkevincox I know that grahamc (he/him) gave some sort of standardized logo to other rooms (like #dev:nixos.org ). maybe we can start with one of those? Maybe "lang" as the text at the top? 11:47:03
@grahamc:nixos.orggrahamc bring it up in #matrix-suggestions:nixos.org and cc samueldr please :) 11:47:24
@kevincox:matrix.orgkevincoxhttps://matrix.to/#/!rMMJVYqfOEOLttKGza:nixos.org/$xuA_LVTKj8YmEODeloSVqB9LBGkrXMGGrwyogP8VQso?via=nixos.org&via=matrix.org&via=nitro.chat11:52:15
@kevincox:matrix.orgkevincox * Asked: https://matrix.to/#/!rMMJVYqfOEOLttKGza:nixos.org/$xuA_LVTKj8YmEODeloSVqB9LBGkrXMGGrwyogP8VQso?via=nixos.org&via=matrix.org&via=nitro.chat11:52:24
@ncfavier:matrix.orgnf joined the room.12:46:56
@melg8:matrix.orgMelg8Hi, if i have derivation drv, and i call drv.drvPath in other derivation, why it tries to build whole derivation drv? how can i avoid it? i need only path string and .drv file to be present in /nix/store - to do my thing and don't want it to try to start full build of it?13:02:26
@toonn:matrix.orgtoonn Melg8: The main channel's (#nix:nixos.org) actually more appropriate for that question. You'll find more eyeballs there : ) 13:56:56
@melg8:matrix.orgMelg8@toons thanks. @sterni gived me answer which i think is what i'm looking for. It is builtins.unsafeDiscardStringContext drv.drvPath - yes it unsafe, but it at least doesn't try to build it. 14:05:48
@toonn:matrix.orgtoonn Melg8: I think usually you'd get the drv path from the expression's .out, that's the path of least resistance. 14:13:07
@melg8:matrix.orgMelg8if i have drv X how can i get list of all derivations that i need to build before that derivation? to build X? and all of that inside nix language itself?14:15:17
@melg8:matrix.orgMelg8 * toonn: if i have drv X how can i get list of all derivations that i need to build before that derivation? to build X? and all of that inside nix language itself? 14:44:53
@toonn:matrix.orgtoonn I don't know. Never do much with derivations themselves. Except for building them ; ) 14:46:34
@toonn:matrix.orgtoonn Again these questions are perfectly on-topic in the main channel, might wanna try there. 14:47:14
@theophane:hufschmitt.netRegnat joined the room.14:50:56
@jul1u5:matrix.orgjul1u5 removed their profile picture.20:05:12
@infinisil:matrix.orginfinisil joined the room.20:29:00
@nbardiuk:matrix.orgnazarii joined the room.22:08:44
25 May 2021
@pasukon:matrix.orgpasukon joined the room.02:48:22
@aasg:aasg.nameAluísio Augusto Silva Gonçalves joined the room.06:39:27
@atrius:matrix.orgmjlbach joined the room.06:47:42
@frogamic:matrix.orgfrogamic joined the room.13:14:28
@meetmangukiya:matrix.orgmeet joined the room.16:05:31
@judson:matrix.orgJudsonI was hoping to build a little utility repo for custom install images. I'd like to "import" the appropriate parts of nixpkgs and keep my code local, but it seems a lot like I'm going to need to maintain a fork or something of nixpkgs itself.17:35:06
@judson:matrix.orgJudsonI tried mucking with NIX_PATH, and that didn't work in opaque ways.17:35:36
@toonn:matrix.orgtoonn Pinning? 17:47:22
@zuckerberg:neet.spacezuckerberg@jud19:00:41
@zuckerberg:neet.spacezuckerberg Judson: you might want to consider using flakes 19:00:54
@judson:matrix.orgJudsonFlakes might be the right approach. Good excuse to play with them.19:01:38
@zuckerberg:neet.spacezuckerbergi recommend this video if you are just starting https://www.youtube.com/watch?v=QXUlhnhuRX419:02:23

Show newer messages


Back to Room ListRoom Version: 6