| 6 Sep 2021 |
| j4m3s joined the room. | 11:20:06 |
| figsoda joined the room. | 11:52:12 |
| TyberiusPrime joined the room. | 12:20:34 |
TyberiusPrime | hey guys. I want to refer to a .nix file inside nixpkgs from my flake with callPackages | 14:36:57 |
TyberiusPrime | what's the magic syntax for that ? | 14:37:18 |
Roos | In a NixOS configuration you can do something like this: https://gitlab.com/roosemberth/dotfiles/-/blob/master/nix/machines/tests/base.nix#L3 | 14:41:03 |
TyberiusPrime | which leads to the question how I get the modulePath in this case... all I have is a flake input, whatever that is :) | 14:42:00 |
TyberiusPrime | (outPath is promising) | 14:42:36 |
TyberiusPrime | indeed "${nixpkgs.outPath}/pkgs/development/r-modules/generic-builder.nix" get's me a new exciting error message | 14:44:42 |
Roos | I would try to toString the nixpkgs argument and access the subpath. | 14:45:16 |
Roos | It's progress \o/ | 14:46:14 |
ilkecan | toString drv and drv.outPath is the same | 14:51:15 |
| papojari changed their profile picture. | 21:17:49 |
| papojari changed their profile picture. | 21:18:35 |
| papojari changed their profile picture. | 21:18:52 |
| papojari changed their profile picture. | 21:20:34 |
colemickens 🏳️🌈 | uh... you can just use it directly.... | 22:50:49 |
colemickens 🏳️🌈 | import "${inputs.nixpkgs}/nixos/modules/....." whatever just works | 22:51:02 |
| 7 Sep 2021 |
| Buckley left the room. | 17:08:43 |
| Buckley joined the room. | 17:08:55 |
| Buckley left the room. | 17:10:57 |
ilkecan | Regarding apps and defaultApp outputs; I was using them to specify the executable name. But after learning about meta.mainProgram, I can't see how they are useful now. Why would I want to create them? | 20:38:47 |
ilkecan | * Regarding apps and defaultApp outputs; I was using them to specify the executable name. But after learning about meta.mainProgram, I can't see how they are useful now. Why would I want to create them? https://nixos.org/manual/nixpkgs/unstable/#var-meta-mainProgram | 20:42:11 |
ilkecan | Only reason I can think of is that I have packages.foo and I want to do nix run '.#bar' rather than nix run '.#foo' | 20:44:21 |
| 8 Sep 2021 |
| mbprtpmnr joined the room. | 13:49:42 |
| 9 Sep 2021 |
colemickens 🏳️🌈 | I seem to have done it again, I have an environemtn where I supposedly have unstable nix, but supposedly "print-dev-env" isn't a command? | 17:46:16 |
colemickens 🏳️🌈 | The CLI didn't change again did it? I think there's something else super obvious that I'm missing for some reason | 17:46:30 |
colemickens 🏳️🌈 | It's from nix-direnv too, somehow it finds an old (Wrong) nix version to use :/ | 17:49:05 |
colemickens 🏳️🌈 | nix --version says 2.4pre... but when I run direnv allow I get an error from a nix-2.3 build :/ | 17:49:29 |
tomberek | colemickens 🏳️🌈: are you on home-manager and direnv is using legacy Nix in its PATH? | 17:57:29 |