diff --git a/docs/source/dev/README.rst b/docs/source/dev/README.rst index 59d092724be29fad7f63515ac499bb01254d675e..14d2de31f932a0aa50545643e30c679c36696e19 100644 --- a/docs/source/dev/README.rst +++ b/docs/source/dev/README.rst @@ -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. diff --git a/shell.nix b/shell.nix index abfefabfe37f5f37e05070dbedef96140305a4c4..dd414673e98f3b4230ff652d19720a56cbfcdf11 100644 --- a/shell.nix +++ b/shell.nix @@ -9,6 +9,8 @@ pkgs.mkShell { shellHook = '' export NIX_PATH="nixpkgs=${pkgs.path}"; ''; + # Run the shellHook from tools + inputsFrom = [tools]; buildInputs = [ tools pkgs.morph diff --git a/tools/default.nix b/tools/default.nix index fbc46990515dec2d389c8489887fea0cac9f3f3f..6273dd2b908fa38946634420eb25caebc837c25f 100644 --- a/tools/default.nix +++ b/tools/default.nix @@ -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>