Flakes: Difference between revisions

imported>Patryk27
mNo edit summary
imported>Thenonameguy
m Fix importing package from multiple channels example, by passing function
Line 348: Line 348:
     unstable = nixpkgs-unstable.legacyPackages.${system}; # considering nixpkgs-unstable is an input registered before.
     unstable = nixpkgs-unstable.legacyPackages.${system}; # considering nixpkgs-unstable is an input registered before.
   };
   };
in nixpkgs.overlays = [ overlay-unstable.unstable ]; # we assign the overlay created before to the overlays of nixpkgs.
in nixpkgs.overlays = [ overlay-unstable ]; # we assign the overlay created before to the overlays of nixpkgs.
</syntaxHighlight>
</syntaxHighlight>
should make a package accessible through <syntaxHighlight>pkgs.unstable.package</syntaxHighlight>
should make a package accessible through <syntaxHighlight>pkgs.unstable.package</syntaxHighlight>