Automated commit
Signed-off-by: Oliver Davies <oliver@oliverdavies.uk>
This commit is contained in:
parent
d35c2ec3c8
commit
375df89de9
2 changed files with 21 additions and 0 deletions
14
notes.adoc
14
notes.adoc
|
@ -68,3 +68,17 @@ ec4c5890c8a75e93e1bb768f998e49ae7d2bf005e5e7c2a57dd2813b881e9758
|
||||||
podman run --rm ec4c5890c8a7
|
podman run --rm ec4c5890c8a7
|
||||||
|
|
||||||
Hi, PHP Thames Valley!
|
Hi, PHP Thames Valley!
|
||||||
|
|
||||||
|
=== Using shell.nix
|
||||||
|
|
||||||
|
nix-shell
|
||||||
|
|
||||||
|
[nix-shell:~/php-thames-valley]$ php index.php
|
||||||
|
|
||||||
|
Hi, PHP Thames Valley
|
||||||
|
|
||||||
|
==== Running a command without entering a shell
|
||||||
|
|
||||||
|
nix-shell --run "php index.php"
|
||||||
|
|
||||||
|
Hi, PHP Thames Valley!
|
||||||
|
|
7
shell.nix
Normal file
7
shell.nix
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
{
|
||||||
|
pkgs ? import <nixpkgs> { },
|
||||||
|
}:
|
||||||
|
|
||||||
|
pkgs.mkShell {
|
||||||
|
packages = [ pkgs.php ];
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue