From c135459bad584204a518792ae1367a7022e81fbe Mon Sep 17 00:00:00 2001 From: tdro Date: Wed, 16 Mar 2022 21:55:39 -0400 Subject: .config/nixpkgs/helpers/mkShellMinimal: Add usage comment --- .config/nixpkgs/helpers/mkShellMinimal.nix | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) 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 { }; +# +# 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 }: -- cgit v1.2.3