pin nixpkgs version in channel expression #31

Closed
opened 2020-07-02 10:48:14 +08:00 by sb10q · 2 comments
Owner
  • Beginners often completely forget to set the nixpkgs channel to 20.03 when installing ARTIQ for the first time.
  • There are also sometimes unnecessary rebuilds when the nixpkgs version on client machines isn't exactly the same as the one it was built with on the server.

These issues can probably be fixed by pinning the exact nixpkgs version when generating the channel expression.

The artiq nixpkgs should be accessible from outside (e.g. as artiq-full.pkgs) so that other packages can be installed from the same version. It should also be possible to easily override the nixpkgs version used by artiq-full when importing it.

The ARTIQ manual should be updated accordingly.

* Beginners often completely forget to set the nixpkgs channel to 20.03 when installing ARTIQ for the first time. * There are also sometimes unnecessary rebuilds when the nixpkgs version on client machines isn't exactly the same as the one it was built with on the server. These issues can probably be fixed by pinning the exact nixpkgs version when generating the channel expression. The artiq nixpkgs should be accessible from outside (e.g. as ``artiq-full.pkgs``) so that other packages can be installed from the same version. It should also be possible to easily override the nixpkgs version used by artiq-full when importing it. The ARTIQ manual should be updated accordingly.
Author
Owner

Or maybe this:
https://www.tweag.io/blog/2020-05-25-flakes/
...which would potentially also avoid the generatedNix hack currently in use here.

Or maybe this: https://www.tweag.io/blog/2020-05-25-flakes/ ...which would potentially also avoid the generatedNix hack currently in use here.
Author
Owner

Fixed with flakes in 7.

Fixed with flakes in 7.
sb10q closed this issue 2022-02-05 17:55:53 +08:00
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: M-Labs/nix-scripts#31