[WIP] Flakes #45

Closed
astro wants to merge 12 commits from astro/nix-scripts:flakes into master
Contributor

(Finding solutions to #32.) Here's a first preview that kind of works.

Problems with flakification:

  • This approach reuses the existing artiq-fast/artiq-full to keep
    duplicated code small. Due to our hacks, even nix flake show takes
    ages until all the artiq-board-generated packages have built. We
    cannot keep this for Flakes.

  • A flake's package attrset is flat. It does not allow for
    hierarchies. To recreate one for the beta/release/legacy branches, a
    solution would be to place flake.{nix,lock} in subdirectories.

  • No preparations for Flakes-Hydra yet. We will need to separate
    packages into artiq-fast/artiq-full again. It makes sense to solve
    the former two problems first.

(Finding solutions to #32.) Here's a first preview that kind of works. Problems with flakification: * This approach reuses the existing artiq-fast/artiq-full to keep duplicated code small. Due to our hacks, even `nix flake show` takes ages until all the artiq-board-generated packages have built. We cannot keep this for Flakes. * A flake's package attrset is flat. It does not allow for hierarchies. To recreate one for the beta/release/legacy branches, a solution would be to place `flake.{nix,lock}` in subdirectories. * No preparations for Flakes-Hydra yet. We will need to separate packages into artiq-fast/artiq-full again. It makes sense to solve the former two problems first.
astro added 6 commits 2021-03-06 20:56:36 +08:00
Owner

Is Hydra able to generate and appropriately publish the flake.lock files?

Is Hydra able to generate and appropriately publish the flake.lock files?
astro added 3 commits 2021-03-10 09:12:00 +08:00
astro added 1 commit 2021-03-11 01:10:55 +08:00
astro added 1 commit 2021-03-11 06:54:57 +08:00
astro added 1 commit 2021-03-11 07:09:59 +08:00
astro force-pushed flakes from e603a876b2 to 3d825116e2 2021-03-13 08:17:33 +08:00 Compare
sb10q closed this pull request 2024-06-12 16:15:56 +08:00

Pull request closed

Sign in to join this conversation.
No reviewers
No Label
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: M-Labs/nix-scripts#45
No description provided.