2020-12-20 17:09:09 -08:00
|
|
|
{ pkgs ? import <nixpkgs> {} }:
|
|
|
|
|
|
|
|
with pkgs;
|
|
|
|
let nixBin =
|
|
|
|
writeShellScriptBin "nix" ''
|
2021-01-24 10:05:26 -08:00
|
|
|
${nixFlakes}/bin/nix --option experimental-features "nix-command flakes" "$@"
|
2020-12-20 17:09:09 -08:00
|
|
|
'';
|
|
|
|
in mkShell {
|
|
|
|
buildInputs = [
|
|
|
|
git
|
|
|
|
nix-zsh-completions
|
|
|
|
];
|
|
|
|
shellHook = ''
|
2021-01-24 10:05:26 -08:00
|
|
|
export FLAKE="$(pwd)"
|
|
|
|
export PATH="$FLAKE/bin:${nixBin}/bin:$PATH"
|
2020-12-20 17:09:09 -08:00
|
|
|
'';
|
|
|
|
}
|