mirror of
https://codeberg.org/mhwombat/nix-book.git
synced 2026-01-26 00:17:13 +08:00
16 lines
248 B
Text
16 lines
248 B
Text
= Shell with access to a package defined in a remote git repo
|
||
|
||
[source,nix,linenums]
|
||
.shell.nix
|
||
....
|
||
include::shell.nix[]
|
||
....
|
||
|
||
Here’s a demonstration using the shell.
|
||
|
||
....
|
||
$# echo '$ nix-shell'
|
||
$# nix-shell --run bash <<EOL
|
||
$ hello
|
||
$# EOL
|
||
....
|