!SgYlXivkogarTVcnZO:nixos.org

Nix Flakes

886 Members
177 Servers

Load older messages


SenderMessageTime
6 Sep 2021
@j4m3s:prologin.orgj4m3s joined the room.11:20:06
@figsoda:matrix.orgfigsoda joined the room.11:52:12
@tyberius_prime:matrix.orgTyberiusPrime joined the room.12:20:34
@tyberius_prime:matrix.orgTyberiusPrimehey guys. I want to refer to a .nix file inside nixpkgs from my flake with callPackages14:36:57
@tyberius_prime:matrix.orgTyberiusPrimewhat's the magic syntax for that ?14:37:18
@roosemberth:orbstheorem.chRoosIn a NixOS configuration you can do something like this: https://gitlab.com/roosemberth/dotfiles/-/blob/master/nix/machines/tests/base.nix#L314:41:03
@tyberius_prime:matrix.orgTyberiusPrimewhich 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
@tyberius_prime:matrix.orgTyberiusPrime(outPath is promising)14:42:36
@tyberius_prime:matrix.orgTyberiusPrimeindeed "${nixpkgs.outPath}/pkgs/development/r-modules/generic-builder.nix" get's me a new exciting error message14:44:42
@roosemberth:orbstheorem.chRoos I would try to toString the nixpkgs argument and access the subpath. 14:45:16
@roosemberth:orbstheorem.chRoos It's progress \o/ 14:46:14
@ilkecan:matrix.orgilkecan toString drv and drv.outPath is the same 14:51:15
@papojari:artemislena.eupapojari changed their profile picture.21:17:49
@papojari:artemislena.eupapojari changed their profile picture.21:18:35
@papojari:artemislena.eupapojari changed their profile picture.21:18:52
@papojari:artemislena.eupapojari changed their profile picture.21:20:34
@colemickens:matrix.orgcolemickens 🏳️‍🌈uh... you can just use it directly....22:50:49
@colemickens:matrix.orgcolemickens 🏳️‍🌈 import "${inputs.nixpkgs}/nixos/modules/....." whatever just works 22:51:02
7 Sep 2021
@buckley310:matrix.orgBuckley left the room.17:08:43
@buckley310:matrix.orgBuckley joined the room.17:08:55
@buckley310:matrix.orgBuckley left the room.17:10:57
@ilkecan:matrix.orgilkecan 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:matrix.orgilkecan * 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:matrix.orgilkecan 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:matrix.orgmbprtpmnr joined the room.13:49:42
9 Sep 2021
@colemickens:matrix.orgcolemickens 🏳️‍🌈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:matrix.orgcolemickens 🏳️‍🌈The CLI didn't change again did it? I think there's something else super obvious that I'm missing for some reason17:46:30
@colemickens:matrix.orgcolemickens 🏳️‍🌈It's from nix-direnv too, somehow it finds an old (Wrong) nix version to use :/17:49:05
@colemickens:matrix.orgcolemickens 🏳️‍🌈 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:matrix.orgtomberek colemickens 🏳️‍🌈: are you on home-manager and direnv is using legacy Nix in its PATH? 17:57:29

Show newer messages


Back to Room ListRoom Version: 6