Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions nix/shell/example.nix
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
{ pkgs }:

let
joke = { FUNNY_JOKE = "What kind of phone does a turtle use? A shell phone!"; };
in
{
example = pkgs.mkShell {
example = pkgs.mkShell (joke // {
packages = with pkgs; [ curl jq git ];
});

FUNNY_JOKE = "What kind of phone does a turtle use? A shell phone!";
};

hook = pkgs.mkShell {
hook = pkgs.mkShell (joke // {
shellHook = ''
echo "Congrats! You just triggered a shell hook for a Nix development environment."
echo "Run \"exit\" to exit this environment."
echo "Then run \"nix develop github:DeterminateSystems/zero-to-nix#hook\" again to re-trigger this hook."
'';
};
});

cpp = pkgs.mkShell {
packages = with pkgs; [ gcc cmake ];
Expand Down