Skip to content

Commit

Permalink
nix: flake: export under overlays.default
Browse files Browse the repository at this point in the history
Keep the existing name to avoid breaking users, but per upstream, flakes
with a single overlay should export it under overlays.default rather
than under a top-level overlay attr.
  • Loading branch information
Nicholas Sielicki committed Nov 5, 2022
1 parent 60ddf01 commit 9213505
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@
inputs.flake-utils.url = github:numtide/flake-utils;

outputs = { self, nixpkgs, flake-utils }:
{
rec {
overlay = final: prev: { inherit (self.packages.${final.system}) spacebar; };
overlays.default = overlay;
}
// flake-utils.lib.eachSystem [ "aarch64-darwin" "x86_64-darwin" ] (system:
let pkgs = nixpkgs.legacyPackages.${system}; in
Expand Down

0 comments on commit 9213505

Please sign in to comment.