diff options
author | tdro <tdro@users.noreply.github.com> | 2022-03-16 21:55:39 -0400 |
---|---|---|
committer | tdro <tdro@users.noreply.github.com> | 2022-03-16 21:55:39 -0400 |
commit | c135459bad584204a518792ae1367a7022e81fbe (patch) | |
tree | 34d4769f680394d3330dd4ec6c774d568b0232cb | |
parent | 0aac4414559235f8cd8c454acce30c0471e0f6b1 (diff) | |
download | dotfiles-c135459bad584204a518792ae1367a7022e81fbe.tar.gz dotfiles-c135459bad584204a518792ae1367a7022e81fbe.tar.bz2 dotfiles-c135459bad584204a518792ae1367a7022e81fbe.zip |
.config/nixpkgs/helpers/mkShellMinimal: Add usage comment
-rw-r--r-- | .config/nixpkgs/helpers/mkShellMinimal.nix | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/.config/nixpkgs/helpers/mkShellMinimal.nix b/.config/nixpkgs/helpers/mkShellMinimal.nix index a2d0ae6..762204e 100644 --- a/.config/nixpkgs/helpers/mkShellMinimal.nix +++ b/.config/nixpkgs/helpers/mkShellMinimal.nix @@ -1,5 +1,27 @@ ### Source: https://github.com/NixOS/nixpkgs/commit/459771518d44f60b59a19381d07b12297908215d ### Article: https://fzakaria.com/2021/08/02/a-minimal-nix-shell.html +### Usage: + +# let +# +# name = "nix-shell.minimal"; +# pkgs = import <nixpkgs> { }; +# +# mkShellMinimal = pkgs.callPackage (builtins.fetchurl { +# url = "https://raw.githubusercontent.com/tdro/dotfiles/0aac4414559235f8cd8c454acce30c0471e0f6b1/.config/nixpkgs/helpers/mkShellMinimal.nix"; +# sha256 = "06vbyyhaam3nmzimzasz6la590ni9cbdql3jy29hhw9ln0xf09yy"; +# }) { }; +# +# in mkShellMinimal rec { +# buildInputs = [ pkgs.coreutils pkgs.hello pkgs.gnugrep pkgs.which ]; +# shellHook = '' +# hello +# which mkdir +# printf "\nPATH is $PATH\n\n" +# grep --version +# export PS1='\h (${name}) \W \$ ' +# ''; +# } { lib }: |