| 7 Dec 2021 |
balsoft | You can parametrise flake outputs | 00:11:59 |
brendanzab | ah cool - do you know of any examples of this? | 00:21:13 |
brendanzab | * ah cool - do you know of any examples of this that I can look at? | 00:21:27 |
brendanzab | (might have missed it in the flake docs) | 00:21:46 |
balsoft | In reply to @brendanzab:matrix.org ah cool - do you know of any examples of this that I can look at? Uh, I don't think I have anything public really | 00:25:06 |
balsoft | It's really late ATM | 00:25:19 |
brendanzab | would I just add something like rustChannel ? { toolchain = "stable", version = "latest" } to the function returned from the outputs? | 00:25:20 |
brendanzab | np | 00:25:25 |
balsoft | In reply to @brendanzab:matrix.org would I just add something like rustChannel ? { toolchain = "stable", version = "latest" } to the function returned from the outputs? No, you should make more outputs :) | 00:25:36 |
balsoft | lib.cartesianProductOfSets can be useful | 00:25:52 |
brendanzab | ahh so another layer of nesting from flake-utils.lib.eachDefaultSystem? | 00:26:05 |
balsoft | Yep | 00:26:14 |
balsoft | In checks I think | 00:26:16 |
brendanzab | cool | 00:27:14 |
brendanzab | thanks! | 00:27:17 |
brendanzab | I'll give it a go - still a massive beginner at nix 😅 | 00:27:46 |
| 8 Dec 2021 |
| Robert Hensing (roberth) changed their profile picture. | 17:40:49 |
| 9 Dec 2021 |
| bmabsout joined the room. | 19:46:43 |
bmabsout | Hello! I'm trying to run a function from flake so that the output is in a nix shell, I ended up doing things manually like this nix shell --impure --expr "(builtins.getFlake \"nixpkgs/nixos-21.11\").legacyPackages.x86_64-linux.python39.withPackages (p: [p.numpy])" is there a better way to do this? | 19:48:28 |
bmabsout | Is there a way to do something similar in meaning to nix shell nixpkgs/nixos-21.11#python39.withPackages --something "(p: [p.numpy])", I might be getting a few concepts wrong here | 19:51:16 |
bmabsout | * Is there a way to do something similar in meaning to nix shell nixpkgs/nixos-21.11#python39.withPackages --something "(p: [p.numpy])"? I might be getting a few concepts wrong here | 19:51:32 |
bmabsout | * Hello! I'm trying to run a function from a flake so that the output is in a nix shell, I ended up doing things manually like this nix shell --impure --expr "(builtins.getFlake \"nixpkgs/nixos-21.11\").legacyPackages.x86_64-linux.python39.withPackages (p: [p.numpy])" is there a better way to do this? | 20:31:56 |
| 10 Dec 2021 |
| linj joined the room. | 00:51:32 |
| J. Ryan Stinnett joined the room. | 13:45:34 |
bmabsout | Just found this! https://github.com/NixOS/nix/issues/5567 | 16:40:14 |
flyx | iggybibi: in your Flake output, you can provide devShell and devShells, which you can then invoke with nix develop. is that what you're searching? | 16:42:56 |
flyx | or if it's from an external flake, write a shell.nix that basically does what you've put in your command | 16:45:39 |
bmabsout | Not really, I wanted a one liner like nix-shell -p 'python3.withPackages (ps: with ps; [ numpy scipy ])' | 16:46:08 |
bmabsout | that drops me into a shell with python and these packages (or any lang with this setup) | 16:46:36 |
flyx | I don't see where in the output schema a flake can provide functions in the first place | 16:51:15 |