Nix Flakes | 888 Members | |
| 179 Servers |
| Sender | Message | Time |
|---|---|---|
| 17 Aug 2023 | ||
In reply to @crtified:crtified.meI don't find the arguments made here to be very compelling. Either way you do it, there's a problem of actually knowing how to use your tools; copy-pasting some nix code doesn't guarantee understandability, which is the stated problem. Also, this article doesn't mention https://github.com/nix-systems/nix-systems at all, which flake-utils pulls in for you automatically but would need to be manually integrated into a custom nix expression like the one suggested therein | 15:31:27 | |
| 18:39:07 | ||
| 18:39:08 | ||
| how can I get the store path to a dependency? I want to set an env var for cmake to find a dependency | 21:56:25 | |
| Are you talking g about flake inputs or derivations as dependency? | 21:57:16 | |
| * Are you talking about flake inputs or derivations as dependency? | 21:57:29 | |
derivations as dependency i suppose. a package in nixpkgs.legacyPackages... | 21:58:22 | |
| In that case, you should probably ask in #nix:nixos.org as it's not really flake specific | 22:19:45 | |
(but to keep it short: you can use the packages as part of a string and it will get resolved as a store path, so something like "${some Derivation}" is a string containing the path to the store) | 22:21:16 | |
| thank you 🙇 | 22:21:41 | |
| https://nixos.org/manual/nix/unstable/language/string-interpolation.html there are derivations explicitly listed as interpolateable | 22:22:58 | |
| Thanks a million | 22:23:12 | |
| 22:49:50 | ||
| 18 Aug 2023 | ||
| 01:18:41 | ||
| 05:42:11 | ||
| hey friends, I'm trying to create a musl based shell using devShell like this:
| 19:06:53 | |
but I get an error that says: error: attribute 'pkgsCross' missing | 19:07:18 | |
| should I do anything special to access pkgsCross? | 19:07:41 | |
| Is nixpkgs your nixpkgs flake input? If yes, check out the legacyPackages attribute | 19:14:37 | |
| yes it is. ok let me try | 19:15:02 | |
| should I import nixpkgs even though it passed as an argument ? | 19:17:32 | |
In reply to @lxsameer:matrix.orgEither you do that, passing an appropriate system value along, or you use nixpkgs.legacyPackages.x86_64-linux.pkgsCross.foooooo | 19:20:43 | |
| (sorry, on mobile right now, so it's a pain to do proper markdown) | 19:21:10 | |
| ahhhhh, got it, I was missing x86_64-linux part | 19:21:19 | |
| thank you | 19:21:22 | |
| 19 Aug 2023 | ||
| 11:24:52 | ||
| Hi! I'm trying to add commands to devShell, like this:
But I get this error:
What's the correct syntax? | 11:26:30 | |
| 12:47:39 | ||
| 19:50:49 | ||
In reply to @mr-qubo:matrix.orgweird that does seem correct https://github.com/search?q=devShell+commands+language%3ANix&type=code&l=Nix | 20:46:22 | |