Jump to content

Translations:Flakes/51/en: Difference between revisions

From NixOS Wiki
FuzzyBot (talk | contribs)
Importing a new version from external source
Tags: Mobile edit Mobile web edit
(No difference)

Revision as of 09:45, 30 July 2024

Message definition (Flakes)
The [https://github.com/edolstra/flake-compat flake-compat] library provides a compatibility layer that allows projects using traditional <code>default.nix</code> and <code>shell.nix</code> files to operate with flakes. For more details and usage examples, see the [[Flake Compat]] page.

There exists the flake-compat library that you can use to shim default.nix and shell.nix files. It will download the inputs of the flake, pass them to the flake’s outputs function and return an attribute set containing defaultNix and shellNix attributes. The attributes will contain the output attribute set with an extra default attribute pointing to current platform’s defaultPackage (resp. devShell for shellNix).