Skip to content
Snippets Groups Projects
Commit 156c7f3e authored by Tom Prince's avatar Tom Prince
Browse files

Add help for interactive nix-shell use.

parent 42111721
No related branches found
No related tags found
2 merge requests!180merge develop into production,!165Add a script to update nixos version, and run it.
......@@ -49,7 +49,7 @@ To update the version of NixOS we deploy with, run:
.. code: shell
nix-shell --command 'update-nixpkgs'
nix-shell --run 'update-nixpkgs'
That will update ``nixpkgs-2015.json`` to the latest release on the nixos-21.05 channel.
......
......@@ -9,6 +9,8 @@ pkgs.mkShell {
shellHook = ''
export NIX_PATH="nixpkgs=${pkgs.path}";
'';
# Run the shellHook from tools
inputsFrom = [tools];
buildInputs = [
tools
pkgs.morph
......
......@@ -18,6 +18,14 @@ in
# with there dependencies available.
pkgs.runCommand "ps_tools" {
nativeBuildInputs = [ makeWrapper ];
shellHook = ''
if [[ $- == *i* ]]; then
cat <<MOTD
Tools (pass --help for details):
- update-nixpkgs
MOTD
fi
'';
} ''
mkdir -p $out/bin
# makeWrapper <executable> <wrapperfile> <args>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment