refactor: static-nix-shell: remove unused options
This commit is contained in:
parent
c9c1181242
commit
953dd98b0f
|
@ -10,10 +10,7 @@
|
||||||
let
|
let
|
||||||
inherit (builtins) attrNames attrValues concatStringsSep foldl' map typeOf;
|
inherit (builtins) attrNames attrValues concatStringsSep foldl' map typeOf;
|
||||||
inherit (lib) concatMapAttrs;
|
inherit (lib) concatMapAttrs;
|
||||||
bash' = bash;
|
|
||||||
pkgs' = pkgs;
|
pkgs' = pkgs;
|
||||||
python3' = python3;
|
|
||||||
zsh' = zsh;
|
|
||||||
# create an attrset of
|
# create an attrset of
|
||||||
# <name> = expected string in the nix-shell invocation
|
# <name> = expected string in the nix-shell invocation
|
||||||
# <value> = package to provide
|
# <value> = package to provide
|
||||||
|
@ -86,7 +83,7 @@ in rec {
|
||||||
);
|
);
|
||||||
|
|
||||||
# `mkShell` specialization for `nix-shell -i bash` scripts.
|
# `mkShell` specialization for `nix-shell -i bash` scripts.
|
||||||
mkBash = { pname, pkgs ? {}, srcPath ? pname, bash ? bash', ...}@attrs:
|
mkBash = { pname, pkgs ? {}, ...}@attrs:
|
||||||
let
|
let
|
||||||
pkgsAsAttrs = pkgsToAttrs "" pkgs' pkgs;
|
pkgsAsAttrs = pkgsToAttrs "" pkgs' pkgs;
|
||||||
pkgsEnv = attrValues pkgsAsAttrs;
|
pkgsEnv = attrValues pkgsAsAttrs;
|
||||||
|
@ -98,7 +95,7 @@ in rec {
|
||||||
);
|
);
|
||||||
|
|
||||||
# `mkShell` specialization for `nix-shell -i zsh` scripts.
|
# `mkShell` specialization for `nix-shell -i zsh` scripts.
|
||||||
mkZsh = { pname, pkgs ? {}, srcPath ? pname, zsh ? zsh', ...}@attrs:
|
mkZsh = { pname, pkgs ? {}, ...}@attrs:
|
||||||
let
|
let
|
||||||
pkgsAsAttrs = pkgsToAttrs "" pkgs' pkgs;
|
pkgsAsAttrs = pkgsToAttrs "" pkgs' pkgs;
|
||||||
pkgsEnv = attrValues pkgsAsAttrs;
|
pkgsEnv = attrValues pkgsAsAttrs;
|
||||||
|
@ -112,7 +109,7 @@ in rec {
|
||||||
# `mkShell` specialization for invocations of `nix-shell -p "python3.withPackages (...)"`
|
# `mkShell` specialization for invocations of `nix-shell -p "python3.withPackages (...)"`
|
||||||
# pyPkgs argument is parsed the same as pkgs, except that names are assumed to be relative to `"ps"` if specified in list form.
|
# pyPkgs argument is parsed the same as pkgs, except that names are assumed to be relative to `"ps"` if specified in list form.
|
||||||
# TODO: rename to `mkPython3` for consistency with e.g. `mkBash`
|
# TODO: rename to `mkPython3` for consistency with e.g. `mkBash`
|
||||||
mkPython3Bin = { pname, pkgs ? {}, pyPkgs ? {}, srcPath ? pname, python3 ? python3', ... }@attrs:
|
mkPython3Bin = { pname, pkgs ? {}, pyPkgs ? {}, ... }@attrs:
|
||||||
let
|
let
|
||||||
pyEnv = python3.withPackages (ps: attrValues (
|
pyEnv = python3.withPackages (ps: attrValues (
|
||||||
pkgsToAttrs "ps." ps pyPkgs
|
pkgsToAttrs "ps." ps pyPkgs
|
||||||
|
|
Loading…
Reference in New Issue
Block a user