| 12 Aug 2021 |
j-k | now that I think about it, it wouldnt solve the issue of adding new inputs but I guess it's a start | 19:29:39 |
elonsroadster | 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 changed their profile picture. | 22:23:36 |
| 13 Aug 2021 |
j-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 | 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 | thanks balsoft | 12:11:48 |
| ineol joined the room. | 12:43:56 |
| jackinloadup joined the room. | 23:01:35 |
| 15 Aug 2021 |
| yusdacra changed their profile picture. | 03:21:23 |
| papojari changed their display name from papojari 🏳️🌈 to papojari. | 09:49:13 |
| papojari changed their profile picture. | 09:50:36 |
| papojari changed their display name from papojari to fritz. | 10:07:04 |
| papojari changed their display name from fritz to papojari. | 10:07:18 |
| papojari left the room. | 17:36:02 |
| 17 Aug 2021 |
| hexagonk set a profile picture. | 05:57:07 |
| chreekat changed their display name from bryan to chreekat. | 19:59:04 |
| 18 Aug 2021 |
| Roos joined the room. | 18:46:15 |
| 19 Aug 2021 |
| 6aa4fd joined the room. | 05:55:12 |
| 20 Aug 2021 |
| 6aa4fd set a profile picture. | 01:13:04 |
| 21 Aug 2021 |
| polykernel left the room. | 01:51:10 |
| 22 Aug 2021 |
| yusdacra changed their profile picture. | 15:49:00 |
| 23 Aug 2021 |
| soiledit joined the room. | 02:28:12 |
| 24 Aug 2021 |
| Mazurel joined the room. | 14:09:20 |
| 25 Aug 2021 |
| NixOS Moderation Bot banned matthewcroughan - nix.zone (<no reason supplied>). | 22:02:33 |
| 28 Aug 2021 |
| lvkm joined the room. | 06:30:54 |
| emmanuelrosa joined the room. | 08:12:58 |
emmanuelrosa | 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 |
Roos | 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 | Which flake.lock does getFlake reference? | 08:32:09 |
Roos | The one from the registry: nix registry list | 08:34:59 |