mirror of
https://codeberg.org/mhwombat/nix-book.git
synced 2026-01-11 00:02:37 +08:00
initial commit
This commit is contained in:
parent
d83e18d5e8
commit
ad8b58fa44
1 changed files with 21 additions and 0 deletions
21
source/recipes/ad-hoc/main.adoc0
Normal file
21
source/recipes/ad-hoc/main.adoc0
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
= Ad hoc environments with access to...
|
||||
|
||||
== A top level package from the Nixpkgs/NixOS repo
|
||||
|
||||
....
|
||||
$# ../../../start-shell nix shell nixpkgs#cowsay <<EOL
|
||||
$ cowsay "moo"
|
||||
$# EOL
|
||||
....
|
||||
|
||||
== A flake
|
||||
|
||||
In this example, we will use a flake defined in a remote git repo.
|
||||
However, you can use any of the flake reference styles defined in <<#flakeref>>.
|
||||
|
||||
....
|
||||
$# ../../../start-shell nix shell git+https://codeberg.org/mhwombat/hello-flake <<EOL
|
||||
$ hello-flake
|
||||
$# EOL
|
||||
....
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue