Open VolodiaPG opened 1 year ago
If you remove the
// { defaultPackage = self.packages.x86_64-linux.main; };
bit and run nix flake show
, you will get the output
├───devShells
│ └───x86_64-linux
│ ├───default: development environment 'nix-shell'
│ └───main: development environment 'nix-shell'
├───packages
│ └───x86_64-linux
│ ├───default: package 'python3.10-default'
│ ├───main: package 'python3.10-main'
│ └───resolveImpure: package 'resolve'
└───projectsJson: unknown
and you see that the flake exposes packages.x86_64-linux.main
.
PS. I'm not very experienced yet so I could be missing something :)
As antotocar34 already wrote you can explore the attributes of the flake with „nix flake show“ If you want to build you run „nix build .#main“ (or other attributes) If you want to change the build behavior or format of the output you can apply overrides. (See the docs) Which could be needed if you want to consume it in another flake. You can Run „nix develop“ to enter the devShell of the flake
Hello,
I am currently having trouble using the result of the flake generated by dream2nix (I think).
I am trying to package a Python library that will be used in other projects as an import in scripts. However, I do not understand how to capture that package (the output, I guess?) and use it in another flake (or in the devshell of the dream2nix flake).
P.S. The
flake.nix
file is the following, if it helps.