Skip to content

Commit a94f702

Browse files
author
Nicholas Sielicki
committed
nix: flake: export under overlays.default
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.
1 parent 235961f commit a94f702

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

flake.nix

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@
55
inputs.flake-utils.url = github:numtide/flake-utils;
66

77
outputs = { self, nixpkgs, flake-utils }:
8-
{
8+
rec {
99
overlay = final: prev: { inherit (self.packages.${final.system}) spacebar; };
10+
overlays.default = overlay;
1011
}
1112
// flake-utils.lib.eachSystem [ "aarch64-darwin" "x86_64-darwin" ] (system:
1213
let pkgs = nixpkgs.legacyPackages.${system}; in

0 commit comments

Comments
 (0)