Skip to content

Commit

Permalink
fix(nix): nest resume attr under system attr
Browse files Browse the repository at this point in the history
rather than vice-versa.

This corrects the error "error: 'resume' is not a valid system type"
raised when running `nix flake check`.
  • Loading branch information
tomeon committed Feb 14, 2023
1 parent 5cd9b3b commit 6b31003
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,13 @@
make OUT_DIR="$out"
'';
in {
packages.resume = perSystem (system: buildResumeFor system);
packages = perSystem (system: {
resume = buildResumeFor system;
});

devShell =
perSystem (system: import ./shell.nix { pkgs = pkgsFor system; });
defaultPackage = perSystem (system: self.packages.resume.${system});

defaultPackage = perSystem (system: self.packages.${system}.resume);
};
}

0 comments on commit 6b31003

Please sign in to comment.