Flakes: Difference between revisions
m Updated nix flake schema's `apps` definition & formatter suggestions. |
No edit summary |
||
| Line 1: | Line 1: | ||
<languages /> | <languages /> | ||
{{Cleanup}} | {{Cleanup}} | ||
<translate> | |||
<!--T:182--> | <!--T:182--> | ||
'''Nix flakes''' are an [[Experimental Nix features|experimental feature]] first introduced in the 2.4 [[Nix]] release,{{Cite manual|nix|development/experimental-features|number=13.8|title=Experimental Features|subsection=xp-feature-flakes|subtitle=flakes}}{{Cite manual|nix|release-notes/rl-2.4|number=14.27|title=Release 2.4 (2021-11-01)}} aiming to address a number of areas of improvement for the Nix ecosystem: they provide a uniform structure for Nix projects, allow for pinning specific versions of each dependencies, and sharing these dependencies via lock files, and overall make it more convenient to write reproducible Nix expressions. | '''Nix flakes''' are an [[Experimental Nix features|experimental feature]] first introduced in the 2.4 [[Nix]] release,{{Cite manual|nix|development/experimental-features|number=13.8|title=Experimental Features|subsection=xp-feature-flakes|subtitle=flakes}}{{Cite manual|nix|release-notes/rl-2.4|number=14.27|title=Release 2.4 (2021-11-01)}} aiming to address a number of areas of improvement for the Nix ecosystem: they provide a uniform structure for Nix projects, allow for pinning specific versions of each dependencies, and sharing these dependencies via lock files, and overall make it more convenient to write reproducible Nix expressions. | ||
| Line 16: | Line 15: | ||
<!--T:185--> | <!--T:185--> | ||
== Flake file structure == | == Flake file structure == | ||
Minimally, a flake file contains a description of the flake, a set of input dependencies and an output. You can generate a very basic flake file at any time using nix flake init. This will populate the current directory with a file called flake.nix that will contain something akin to: | Minimally, a flake file contains a description of the flake, a set of input dependencies and an output. You can generate a very basic flake file at any time using nix flake init. This will populate the current directory with a file called flake.nix that will contain something akin to: | ||
</translate> | |||
{{File|3=<nowiki>{ | {{File|3=<nowiki>{ | ||
description = "A very basic flake"; | description = "A very basic flake"; | ||
inputs = { | inputs = { | ||
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable"; | nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable"; | ||
}; | }; | ||
outputs = { self, nixpkgs }: { | outputs = { self, nixpkgs }: { | ||
packages.x86_64-linux.hello = nixpkgs.legacyPackages.x86_64-linux.hello; | packages.x86_64-linux.hello = nixpkgs.legacyPackages.x86_64-linux.hello; | ||
packages.x86_64-linux.default = self.packages.x86_64-linux.hello; | packages.x86_64-linux.default = self.packages.x86_64-linux.hello; | ||
}; | }; | ||
}</nowiki>|name=flake.nix|lang=nix}} | }</nowiki>|name=flake.nix|lang=nix}} | ||
<translate> | |||
<!--T:190--> | |||
In the example above, you can see the description, the input specified as a GitHub repository with a specific branch (here <code>nixos/nixpkgs</code> on the <code>nixos-unstable</code> branch), and an output that makes use of the input. The output simply specifies that the flake contains one package for the x86_64 architecture called <code>hello</code>. Even if your flake's output wouldn't use its input (however, in practice, that is highly unlikely), the output still needs to be a Nix function. | In the example above, you can see the description, the input specified as a GitHub repository with a specific branch (here <code>nixos/nixpkgs</code> on the <code>nixos-unstable</code> branch), and an output that makes use of the input. The output simply specifies that the flake contains one package for the x86_64 architecture called <code>hello</code>. Even if your flake's output wouldn't use its input (however, in practice, that is highly unlikely), the output still needs to be a Nix function. | ||
{{Note|Flakes require you to specify its outputs for each architecture separately. For more information, read the related section below.}} | {{Note|Flakes require you to specify its outputs for each architecture separately. For more information, read the related section below. | ||
</translate>}} | |||
<translate> | |||
<!--T:191--> | <!--T:191--> | ||
=== Nix configuration === | === Nix configuration === | ||
It is possible to override the global Nix configuration set in your <code>nix.conf</code> file for the purposes of evaluating a flake. This can be useful, for example, for setting up binary caches specific to certain projects, while keeping the global configuration untouched. The flake file can contain a nixConfig attribute with any relevant configuration settings supplied. For example, enabling the nix-community binary cache would be achieved by: | It is possible to override the global Nix configuration set in your <code>nix.conf</code> file for the purposes of evaluating a flake. This can be useful, for example, for setting up binary caches specific to certain projects, while keeping the global configuration untouched. The flake file can contain a nixConfig attribute with any relevant configuration settings supplied. For example, enabling the nix-community binary cache would be achieved by: | ||
</translate> | |||
{{File|3=<nowiki>{ | {{File|3=<nowiki>{ | ||
... | ... | ||
| Line 53: | Line 58: | ||
]; | ]; | ||
} | } | ||
}</nowiki>|name=flake.nix|lang=nix}}{{Note|If you are used to configuring your Nix settings via the NixOS configuration, these options are under <code>nix.settings</code> and not <code>nix</code>. For example, you cannot specify the automatic storage optimisation under <code>nix.optimisation.enable</code>.}} | }</nowiki>|name=flake.nix|lang=nix}} | ||
<translate> | |||
{{Note|If you are used to configuring your Nix settings via the NixOS configuration, these options are under <code>nix.settings</code> and not <code>nix</code>. For example, you cannot specify the automatic storage optimisation under <code>nix.optimisation.enable</code>.}} | |||
== Setup == <!--T:192--> | == Setup == <!--T:192--> | ||
| Line 62: | Line 70: | ||
When using any [[Nix command|<code>nix</code> command]], add the following command-line options: | When using any [[Nix command|<code>nix</code> command]], add the following command-line options: | ||
</translate> | </translate> | ||
<syntaxhighlight lang="shell"> | <syntaxhighlight lang="shell"> | ||
--experimental-features 'nix-command flakes' | --experimental-features 'nix-command flakes' | ||
</syntaxhighlight> | </syntaxhighlight> | ||
<translate> | <translate> | ||
=== Enabling flakes permanently === <!--T:193--> | === Enabling flakes permanently === <!--T:193--> | ||
| Line 72: | Line 82: | ||
<!--T:8--> | <!--T:8--> | ||
Add the following to the [[Overview_of_the_NixOS_Linux_distribution#Declarative_Configuration system configuration |NixOS configuration]]: | Add the following to the [[Overview_of_the_NixOS_Linux_distribution#Declarative_Configuration system configuration |NixOS configuration]]: | ||
</translate> | |||
<syntaxHighlight lang=nix> | <syntaxHighlight lang=nix> | ||
nix.settings.experimental-features = [ "nix-command" "flakes" ]; | nix.settings.experimental-features = [ "nix-command" "flakes" ]; | ||
</syntaxHighlight> | </syntaxHighlight> | ||
<translate> | <translate> | ||
====Home Manager==== <!--T:10--> | ====Home Manager==== <!--T:10--> | ||
<!--T:11--> | <!--T:11--> | ||
Add the following to your [[Home Manager|home manager]] config: | Add the following to your [[Home Manager|home manager]] config: | ||
</translate> | |||
<syntaxhighlight lang="nix"> | <syntaxhighlight lang="nix"> | ||
nix.settings.experimental-features = [ "nix-command" "flakes" ]; | nix.settings.experimental-features = [ "nix-command" "flakes" ]; | ||
</syntaxhighlight> | </syntaxhighlight> | ||
<translate> | <translate> | ||
====Nix standalone==== <!--T:13--> | ====Nix standalone==== <!--T:13--> | ||
| Line 97: | Line 107: | ||
<!--T:15--> | <!--T:15--> | ||
Add the following to <code>~/.config/nix/nix.conf</code> or <code>/etc/nix/nix.conf</code>: | Add the following to <code>~/.config/nix/nix.conf</code> or <code>/etc/nix/nix.conf</code>: | ||
</translate> | |||
<syntaxHighlight lang=text> | <syntaxHighlight lang=text> | ||
experimental-features = nix-command flakes | experimental-features = nix-command flakes | ||
</syntaxHighlight> | </syntaxHighlight> | ||
<translate> | <translate> | ||
== Usage == <!--T:17--> | == Usage == <!--T:17--> | ||
| Line 116: | Line 127: | ||
<!--T:64--> | <!--T:64--> | ||
=== The nix flakes command === | === The nix flakes command === | ||
</translate> | |||
{{Main|Nix (command)}} | {{Main|Nix (command)}} | ||
<translate> | |||
<!--T:65--> | <!--T:65--> | ||
The {{ic|nix flake}} subcommand is described in {{Nix Manual|name=command reference page of the Nix manual|anchor=command-ref/new-cli/nix3-flake}}. | The {{ic|nix flake}} subcommand is described in {{Nix Manual|name=command reference page of the Nix manual|anchor=command-ref/new-cli/nix3-flake}}. | ||
| Line 123: | Line 137: | ||
<!--T:194--> | <!--T:194--> | ||
This flake produces a single flake output <code>packages</code>. And within that, <code>x86_64-linux</code> is a system-specifc attribute set. And within that, two package [[derivations]] <code>default</code> and <code>hello</code>. You can find outputs with the {{Nix Manual|name=show command|anchor=command-ref/new-cli/nix3-flake-show}} of a flake as shown below: | This flake produces a single flake output <code>packages</code>. And within that, <code>x86_64-linux</code> is a system-specifc attribute set. And within that, two package [[derivations]] <code>default</code> and <code>hello</code>. You can find outputs with the {{Nix Manual|name=show command|anchor=command-ref/new-cli/nix3-flake-show}} of a flake as shown below: | ||
</translate> | |||
<syntaxhighlight lang="console"> | <syntaxhighlight lang="console"> | ||
$ nix flake show | $ nix flake show | ||
| Line 133: | Line 147: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
<translate> | |||
==== Development shells ==== <!--T:196--> | ==== Development shells ==== <!--T:196--> | ||
<!--T:197--> | <!--T:197--> | ||
A <code>devShell</code> is a Nix-provided [[Development_environment_with_nix-shell#nix develop|development environment]] defined within a flake. It lets you declare a reproducible shell environment with the tools, libraries, and environment variables you need for the development of a specific project. This is flake equivalent to defining a <code>nix-shell</code>. | A <code>devShell</code> is a Nix-provided [[Development_environment_with_nix-shell#nix develop|development environment]] defined within a flake. It lets you declare a reproducible shell environment with the tools, libraries, and environment variables you need for the development of a specific project. This is flake equivalent to defining a <code>nix-shell</code>. | ||
</translate> | |||
<syntaxhighlight lang="nix"> | <syntaxhighlight lang="nix"> | ||
{ | { | ||
description = "Example flake with a devShell"; | description = "Example flake with a devShell"; | ||
inputs.nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable"; | inputs.nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable"; | ||
outputs = { self, nixpkgs}: | outputs = { self, nixpkgs}: | ||
let | let | ||
| Line 164: | Line 177: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
<translate> | |||
<!--T:201--> | <!--T:201--> | ||
To enter the development shell environment: | To enter the development shell environment: | ||
</translate> | |||
<syntaxhighlight lang="console"> | <syntaxhighlight lang="console"> | ||
$ nix develop | $ nix develop | ||
</syntaxhighlight> | </syntaxhighlight> | ||
<translate> | |||
<!--T:203--> | <!--T:203--> | ||
{{note|You don’t need to define a devShell to enter a development shell using nix develop. | {{note|You don’t need to define a devShell to enter a development shell using nix develop. | ||
| Line 180: | Line 195: | ||
<!--T:103--> | <!--T:103--> | ||
Running <code>nix build</code> will look in the <code>legacyPackages</code> and <code>packages</code> output attributes for the corresponding [[derivation]] and then your system architecture and build the default output. If you want to specify a build attribute in a flake repository, you can run <code>nix build .#<attr></code>. In the example above, if you wanted to build the <code>packages.x86_64-linux.hello</code> attribute, run: | Running <code>nix build</code> will look in the <code>legacyPackages</code> and <code>packages</code> output attributes for the corresponding [[derivation]] and then your system architecture and build the default output. If you want to specify a build attribute in a flake repository, you can run <code>nix build .#<attr></code>. In the example above, if you wanted to build the <code>packages.x86_64-linux.hello</code> attribute, run: | ||
</translate> | |||
<syntaxHighlight lang=console> | <syntaxHighlight lang=console> | ||
$ nix build .#hello | $ nix build .#hello | ||
</syntaxHighlight> | </syntaxHighlight> | ||
<translate> | |||
<!--T:205--> | <!--T:205--> | ||
Likewise, you can specify an attribute with the run command: <code>nix run .#hello</code> and the develop command: <code>nix develop .#hello</code>. | Likewise, you can specify an attribute with the run command: <code>nix run .#hello</code> and the develop command: <code>nix develop .#hello</code>. | ||
| Line 222: | Line 238: | ||
<!--T:34--> | <!--T:34--> | ||
[[Nixpkgs]] can be defined using the following code: | [[Nixpkgs]] can be defined using the following code: | ||
</translate> | |||
<code>inputs.nixpkgs.url = "github:NixOS/nixpkgs/<branch name>";</code> | <code>inputs.nixpkgs.url = "github:NixOS/nixpkgs/<branch name>";</code> | ||
<translate> | |||
Nixpkgs can alternatively also point to an url cached by the NixOS organization: | Nixpkgs can alternatively also point to an url cached by the NixOS organization: | ||
</translate> | |||
<code>inputs.nixpkgs.url = "<nowiki>https://nixos.org/channels/nixpkgs-unstable/nixexprs.tar.xz</nowiki>";</code> | <code>inputs.nixpkgs.url = "<nowiki>https://nixos.org/channels/nixpkgs-unstable/nixexprs.tar.xz</nowiki>";</code> | ||
<translate> | |||
In this example the input would point to the `nixpkgs-unstable` channel. | In this example the input would point to the `nixpkgs-unstable` channel. | ||
<!--T:36--> | <!--T:36--> | ||
| Line 239: | Line 256: | ||
<!--T:37--> | <!--T:37--> | ||
For example, adding [[Hyprland]] as an input would look something like this: | For example, adding [[Hyprland]] as an input would look something like this: | ||
</translate> | |||
<code>inputs.hyprland.url = "github:hyprwm/Hyprland";</code> | <code>inputs.hyprland.url = "github:hyprwm/Hyprland";</code> | ||
<translate> | <translate> | ||
<!--T:39--> | <!--T:39--> | ||
If you want to make Hyprland follow the nixpkgs input to avoid having multiple versions of nixpkgs, this can be done using the following code: | If you want to make Hyprland follow the nixpkgs input to avoid having multiple versions of nixpkgs, this can be done using the following code: | ||
</translate> | |||
<code>inputs.hyprland.inputs.nixpkgs.follows = "nixpkgs";</code> | <code>inputs.hyprland.inputs.nixpkgs.follows = "nixpkgs";</code> | ||
<translate> | <translate> | ||
<!--T:41--> | <!--T:41--> | ||
Using curly brackets (<code>{}</code>), we can shorten all of this and put it in a table. The code will look something like this: | Using curly brackets (<code>{}</code>), we can shorten all of this and put it in a table. The code will look something like this: | ||
</translate> | |||
<syntaxhighlight lang="nix"> | <syntaxhighlight lang="nix"> | ||
inputs = { | inputs = { | ||
| Line 264: | Line 281: | ||
}; | }; | ||
</syntaxhighlight> | </syntaxhighlight> | ||
<translate> | <translate> | ||
<!--T:206--> | <!--T:206--> | ||
By default, Git submodules in package <code>src</code>'s won't get copied to the nix store, this may cause the build to fail. Flakes in Git repositories can declare that they need Git submodules to be enabled. Since Nix version [https://discourse.nixos.org/t/nix-2-27-0-released/62003 2.27], you can enable submodules by: | By default, Git submodules in package <code>src</code>'s won't get copied to the nix store, this may cause the build to fail. Flakes in Git repositories can declare that they need Git submodules to be enabled. Since Nix version [https://discourse.nixos.org/t/nix-2-27-0-released/62003 2.27], you can enable submodules by: | ||
</translate> | |||
<syntaxhighlight lang="nix"> | <syntaxhighlight lang="nix"> | ||
inputs.self.submodules = true; | inputs.self.submodules = true; | ||
</syntaxhighlight> | </syntaxhighlight> | ||
<translate> | |||
=== Output schema === <!--T:42--> | === Output schema === <!--T:42--> | ||
| Line 296: | Line 314: | ||
<!--T:154--> | <!--T:154--> | ||
* <code><store-path></code> is a <code>/nix/store..</code> path | * <code><store-path></code> is a <code>/nix/store..</code> path | ||
</translate> | |||
<syntaxhighlight lang="nix"> | <syntaxhighlight lang="nix"> | ||
{ self, ... }@inputs: | { self, ... }@inputs: | ||
| Line 346: | Line 364: | ||
} | } | ||
</syntaxhighlight> | </syntaxhighlight> | ||
<translate> | <translate> | ||
<!--T:48--> | <!--T:48--> | ||
You can also define additional arbitrary attributes, but these are the outputs that Nix knows about. | You can also define additional arbitrary attributes, but these are the outputs that Nix knows about. | ||
| Line 371: | Line 389: | ||
<!--T:211--> | <!--T:211--> | ||
Flakes force you to specify a program for each supported architecture. An example below shows how to write a flake that targets multiple architectures. | Flakes force you to specify a program for each supported architecture. An example below shows how to write a flake that targets multiple architectures. | ||
</translate> | |||
<syntaxhighlight lang="nix"> | <syntaxhighlight lang="nix"> | ||
{ | { | ||
description = "A flake targeting multiple architectures"; | description = "A flake targeting multiple architectures"; | ||
inputs = { | inputs = { | ||
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable"; | nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable"; | ||
}; | }; | ||
outputs = { self, nixpkgs }: let | outputs = { self, nixpkgs }: let | ||
systems = [ "x86_64-linux" "aarch64-linux" ]; | systems = [ "x86_64-linux" "aarch64-linux" ]; | ||
| Line 400: | Line 416: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
<translate> | |||
<!--T:215--> | <!--T:215--> | ||
You can also use third-parties projects like [[Flake Utils|flake-utils]] or [[Flake Parts|flake-parts]] that automatically provide code to avoid this boilerplate. To avoid re-defining the program multiple times, refer to [[Flake Utils#Defining a flake for multiple architectures]] | You can also use third-parties projects like [[Flake Utils|flake-utils]] or [[Flake Parts|flake-parts]] that automatically provide code to avoid this boilerplate. To avoid re-defining the program multiple times, refer to [[Flake Utils#Defining a flake for multiple architectures]] | ||
| Line 412: | Line 429: | ||
<!--T:218--> | <!--T:218--> | ||
To allow for [[Unfree software|unfree software]] in a flake project, you need to explicitly allow it by setting <code>config.allowUnree = true;</code> when importing Nixpkgs. | To allow for [[Unfree software|unfree software]] in a flake project, you need to explicitly allow it by setting <code>config.allowUnree = true;</code> when importing Nixpkgs. | ||
</translate> | |||
<syntaxhighlight lang="nix"> | <syntaxhighlight lang="nix"> | ||
{ | { | ||
| Line 427: | Line 444: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
<translate> | |||
== NixOS configuration with flakes == <!--T:220--> | == NixOS configuration with flakes == <!--T:220--> | ||
| Line 443: | Line 461: | ||
=== Pushing Flakes to Cachix === <!--T:99--> | === Pushing Flakes to Cachix === <!--T:99--> | ||
</translate> | |||
https://docs.cachix.org/pushing#flakes | https://docs.cachix.org/pushing#flakes | ||
<translate> | <translate> | ||
=== Flake support in projects without flakes === <!--T:50--> | === Flake support in projects without flakes === <!--T:50--> | ||
| Line 467: | Line 485: | ||
=== Build a package added in a PR === <!--T:161--> | === Build a package added in a PR === <!--T:161--> | ||
</translate> | |||
<syntaxHighlight> | <syntaxHighlight> | ||
nix build github:nixos/nixpkgs?ref=pull/<PR_NUMBER>/head#<PACKAGE> | nix build github:nixos/nixpkgs?ref=pull/<PR_NUMBER>/head#<PACKAGE> | ||
</syntaxHighlight> | </syntaxHighlight> | ||
<translate> | <translate> | ||
<!--T:162--> | <!--T:162--> | ||
this allows building a package that has not yet been added to nixpkgs. | this allows building a package that has not yet been added to nixpkgs. | ||
| Line 479: | Line 497: | ||
<!--T:132--> | <!--T:132--> | ||
note that this will download a full source tarball of nixpkgs. if you already have a local clone, using that may be faster due to delta compression: | note that this will download a full source tarball of nixpkgs. if you already have a local clone, using that may be faster due to delta compression: | ||
</translate> | |||
<syntaxHighlight> | <syntaxHighlight> | ||
git fetch upstream pull/<PR_NUMBER>/head && git checkout FETCH_HEAD && nix build .#PACKAGE | git fetch upstream pull/<PR_NUMBER>/head && git checkout FETCH_HEAD && nix build .#PACKAGE | ||
</syntaxHighlight> | </syntaxHighlight> | ||
<translate> | <translate> | ||
<!--T:163--> | <!--T:163--> | ||
this allows building a package that has not yet been added to nixpkgs. | this allows building a package that has not yet been added to nixpkgs. | ||
| Line 493: | Line 511: | ||
<!--T:133--> | <!--T:133--> | ||
When a [[git]] folder exists, flake will only copy files added in git to maximize reproducibility (this way if you forgot to add a local file in your repo, you will directly get an error when you try to compile it). However, for development purpose you may want to create an alternative flake file, for instance containing configuration for your preferred editors as described [https://discourse.nixos.org/t/local-personal-development-tools-with-flakes/22714/8 here]… of course without committing this file since it contains only your own preferred tools. You can do so by doing something like that (say for a file called <code>extra/flake.nix</code>): | When a [[git]] folder exists, flake will only copy files added in git to maximize reproducibility (this way if you forgot to add a local file in your repo, you will directly get an error when you try to compile it). However, for development purpose you may want to create an alternative flake file, for instance containing configuration for your preferred editors as described [https://discourse.nixos.org/t/local-personal-development-tools-with-flakes/22714/8 here]… of course without committing this file since it contains only your own preferred tools. You can do so by doing something like that (say for a file called <code>extra/flake.nix</code>): | ||
</translate> | |||
<syntaxHighlight> | <syntaxHighlight> | ||
git add --intent-to-add extra/flake.nix | git add --intent-to-add extra/flake.nix | ||
git update-index --skip-worktree --assume-unchanged extra/flake.nix | git update-index --skip-worktree --assume-unchanged extra/flake.nix | ||
</syntaxHighlight> | </syntaxHighlight> | ||
<translate> | <translate> | ||
=== Rapid iteration of a direct dependency === <!--T:135--> | === Rapid iteration of a direct dependency === <!--T:135--> | ||
| Line 508: | Line 526: | ||
<!--T:136--> | <!--T:136--> | ||
Consider a situation where your executable, <code>consumexe</code>, depends on a library, <code>libdep</code>. You're trying to work on both at the same time, where changes to <code>libdep</code> are reflected in real time for <code>consumexe</code>. This workflow can be achieved like so: | Consider a situation where your executable, <code>consumexe</code>, depends on a library, <code>libdep</code>. You're trying to work on both at the same time, where changes to <code>libdep</code> are reflected in real time for <code>consumexe</code>. This workflow can be achieved like so: | ||
</translate> | |||
<syntaxHighlight lang=bash> | <syntaxHighlight lang=bash> | ||
cd ~/libdep-src-checkout/ | cd ~/libdep-src-checkout/ | ||
| Line 517: | Line 535: | ||
installPhase # install it like nix does | installPhase # install it like nix does | ||
</syntaxHighlight> | </syntaxHighlight> | ||
<translate> | <translate> | ||
<!--T:166--> | <!--T:166--> | ||
Now that you've built the dependency, <code>consumexe</code> can take it as an input. '''In another terminal''': | Now that you've built the dependency, <code>consumexe</code> can take it as an input. '''In another terminal''': | ||
</translate> | |||
<syntaxHighlight lang=bash> | <syntaxHighlight lang=bash> | ||
cd ~/consumexe-src-checkout/ | cd ~/consumexe-src-checkout/ | ||
| Line 529: | Line 547: | ||
# Output should show ~/libdep-src-checkout/ so you know it worked | # Output should show ~/libdep-src-checkout/ so you know it worked | ||
</syntaxHighlight> | </syntaxHighlight> | ||
<translate> | <translate> | ||
| Line 589: | Line 608: | ||
<!--T:181--> | <!--T:181--> | ||
* [https://github.com/nix-community/todomvc-nix building Rust and Haskell flakes] | * [https://github.com/nix-community/todomvc-nix building Rust and Haskell flakes] | ||
</translate> | |||
{{references}} | {{references}} | ||
<translate> | |||
<!--T:230--> | |||
[[Category:Software|Software]] | |||
[[Category:Nix|Nix]] | |||
[[Category:Nix Language|Nix Language]] | |||
[[Category:Flakes|Flakes]] | |||
</translate> | </translate> | ||