snowfallorg / flake

Simplify Nix Flakes on the command line.
Other
78 stars 5 forks source link

error: attribute 'overlay' missing #9

Open songpola opened 2 months ago

songpola commented 2 months ago

I got an error when adding the overlay to the flake. (I haven't added the snowfallorg.flake to my environment.systemPackages yet.)

I couldn't find the overlay in the source code (main). Is it perhaps missing?

This is my flake.nix ```nix { inputs = { nixpkgs.url = "nixpkgs"; snowfall-lib = { url = "github:snowfallorg/lib"; inputs.nixpkgs.follows = "nixpkgs"; }; snowfall-flake = { url = "github:snowfallorg/flake"; inputs.nixpkgs.follows = "nixpkgs"; }; }; outputs = inputs: inputs.snowfall-lib.mkFlake { inherit inputs; src = ./.; overlays = with inputs; [ snowfall-flake.overlay ]; }; } ```
This is the error ``` error: attribute 'overlay' missing at /nix/store/pz221dx8i7l2mrzj0znw3q07ha06x1vp-source/flake.nix:32:9: 31| overlays = with inputs; [ 32| snowfall-flake.overlay | ^ 33| ]; Did you mean overlays? ```
jakehamilton commented 2 months ago

Ah, you will want to use the modern snowfall-flake.overlays.default. The old overlay property has been removed.

songpola commented 2 months ago

Thanks. The docs should be updated then. :)