!SgYlXivkogarTVcnZO:nixos.org

Nix Flakes

877 Members
175 Servers

Load older messages


SenderMessageTime
12 Aug 2021
@j-k:matrix.orgj-know that I think about it, it wouldnt solve the issue of adding new inputs but I guess it's a start19:29:39
@elonsroadster:matrix.orgelonsroadster
In reply to @j-k:matrix.org
now that I think about it, it wouldnt solve the issue of adding new inputs but I guess it's a start
Well it could if it was sort of also evaluated as a flake, except that i had direct access to the other flake
21:13:40
@yusdacra:nixos.devyusdacra changed their profile picture.22:23:36
13 Aug 2021
@j-k:matrix.orgj-k

what do I do when I want to build an array of derivations?

with https://github.com/06kellyjac/vim-git-overlay/blob/master/ci.nix i can do nix-build ci.nix -A buildOutputs and it builds a bunch of result-x but if I want to do that using flakes I'm getting stuck

I can do blah = pkgs.callPackage ./flake-ci.nix { }; in the root of the flake and it shows in the repl with buildOutputs as an array of derivations but idk how to build it
If I put it in packages it just doesnt show up in the repl and says there's no attribute with nix build .#whatever

10:14:43
@balsoft:balsoft.rubalsoft
In reply to @j-k:matrix.org

what do I do when I want to build an array of derivations?

with https://github.com/06kellyjac/vim-git-overlay/blob/master/ci.nix i can do nix-build ci.nix -A buildOutputs and it builds a bunch of result-x but if I want to do that using flakes I'm getting stuck

I can do blah = pkgs.callPackage ./flake-ci.nix { }; in the root of the flake and it shows in the repl with buildOutputs as an array of derivations but idk how to build it
If I put it in packages it just doesnt show up in the repl and says there's no attribute with nix build .#whatever

You should export it as a single derivation, e.g. with buildEnv
11:40:59
@j-k:matrix.orgj-k thanks balsoft 12:11:48
@ineol:matrix.orgineol joined the room.12:43:56
@jackinloadup:matrix.orgjackinloadup joined the room.23:01:35
15 Aug 2021
@yusdacra:nixos.devyusdacra changed their profile picture.03:21:23
@papojari:artemislena.eupapojari changed their display name from papojari 🏳️‍🌈 to papojari.09:49:13
@papojari:artemislena.eupapojari changed their profile picture.09:50:36
@papojari:artemislena.eupapojari changed their display name from papojari to fritz.10:07:04
@papojari:artemislena.eupapojari changed their display name from fritz to papojari.10:07:18
@papojari:artemislena.eupapojari left the room.17:36:02
17 Aug 2021
@hexagonk:halogen.cityhexagonk set a profile picture.05:57:07
@b:chreekat.netchreekat changed their display name from bryan to chreekat.19:59:04
18 Aug 2021
@roosemberth:orbstheorem.chRoos joined the room.18:46:15
19 Aug 2021
@6aa4fd:tchncs.de6aa4fd joined the room.05:55:12
20 Aug 2021
@6aa4fd:tchncs.de6aa4fd set a profile picture.01:13:04
21 Aug 2021
@polykernel:kde.orgpolykernel left the room.01:51:10
22 Aug 2021
@yusdacra:nixos.devyusdacra changed their profile picture.15:49:00
23 Aug 2021
@susscrofa:matrix.orgsoiledit joined the room.02:28:12
24 Aug 2021
@mazurel:matrix.orgMazurel joined the room.14:09:20
25 Aug 2021
@mjolnir:nixos.orgmjolnir banned @matthewcroughan:defenestrate.itmatthewcroughan - nix.zone (<no reason supplied>).22:02:33
28 Aug 2021
@lvkm:matrix.orglvkm joined the room.06:30:54
@emmanuelrosa:matrix.orgemmanuelrosa joined the room.08:12:58
@emmanuelrosa:matrix.orgemmanuelrosa I use nix-shell to create bash scripts using the -i intepreter flag. But I don't see a way to do the same thing with nix shell. Right now, I have NIX_PATH so that nix-shell continues to work, now that I'm using Nix flakes to build NixOS. But of course that means it can point to a different Nixpkgs. What's the Flakes equivalent of nix-shell -i bash? 08:16:27
@roosemberth:orbstheorem.chRoos I don't know of an equivalent to nix-shell, but a more viable hack may be something based on nix-shell -E '(builtins.getFlake "github:nixos/nixpkgs").legacyPackages.${builtins.currentSystem}.hello'. 08:26:48
@emmanuelrosa:matrix.orgemmanuelrosa Which flake.lock does getFlake reference? 08:32:09
@roosemberth:orbstheorem.chRoos The one from the registry: nix registry list 08:34:59

Show newer messages


Back to Room ListRoom Version: 6