Nix Flakes | 859 Members | |
| 177 Servers |
| Sender | Message | Time |
|---|---|---|
| 21 May 2024 | ||
| 11:34:51 | ||
| nix-direnv does not itself present a way to fix this problem, but you can rely on it to not gc the derivation (which is at least a partial answer?) | 18:30:57 | |
| Unfortunately that's mostly only useful for a local machine. I was trying to pre-build the derivation for CI purposes. So direnv won't work. I found an interesting technique looking at https://github.com/numtide/devshell/blob/12e914740a25ea1891ec619bb53cf5e6ca922e40/docs/src/flake-app.md?plain=1#L7 that makes it so it's a bit easier to call | 18:53:29 | |
| Can't push the devshell to cachix? | 19:10:20 | |
| 19:11:10 | ||
| Abílio Costa: I missed your reply here. I am sorry for that! Both nix-direnv and flakeenv take a flake specifier for the flake you want to use: I wrote and maintain flakeenv and am a maintainer of nix-direnv, so if you have trouble - please ping me here or (preferably) on the repo for the tool in question :) | 21:03:34 | |
| * Abílio Costa: I missed your reply here. I am sorry for that! Both nix-direnv and flakeenv take a flake specifier for the flake you want to use: I wrote and maintain flakeenv and am a maintainer of nix-direnv, so if you have trouble - please ping me here or (preferably) on the repo for the tool in question :) | 21:03:49 | |
| 22 May 2024 | ||
| 15:26:03 | ||
| 15:28:17 | ||
| I can and should. I'm planning on doing that, but that's part of what I am trying to solve for too. I wanted to be able to build the devshell without entering the terminal so that I could then do things like cache it. | 18:52:57 | |
So - at the risk of not understanding the context, why does nix build .#devshells.<system>.<name> not work? | 18:54:33 | |
* So - at the risk of not understanding the context, why does nix build .#devShells.<system>.<name> not work? | 18:54:46 | |
| It does, was just looking for a command that's system-agnostic.
| 19:08:42 | |
So you're left with needing to determine the system through impure commands, hardcoding it, or use a workaround as numtide/devshell does. | 19:09:48 | |
* So you're left with needing to determine the system through impure commands, hardcoding it, or use a bit of a workaround as numtide/devshell does. | 19:09:58 | |
* So you're left with needing to determine the system through impure commands, hardcoding it, or using a bit of a workaround as numtide/devshell does. | 19:10:19 | |
I just realized the cachix documentation offers another "workaround": nix develop -c true | 19:10:50 | |
| Redacted or Malformed Event | 19:37:06 | |
| * Is there a way to replace a precompiled bundled musl libc.so from a package with the one from nixpkgs? | 19:37:25 | |
| Oh, yeah, I guess that would infer the system and just exit the shell | 19:53:48 | |
| Honestly I like that one more | 19:53:59 | |
| 20:10:11 | ||
| 23 May 2024 | ||
| 00:21:53 | ||
| 00:27:09 | ||
| 00:29:43 | ||
| 00:33:17 | ||
| 01:43:39 | ||
| 02:32:19 | ||
| 02:47:52 | ||
| 07:49:28 | ||