{pkgs}: let shellrcPkgs = { shellrc-generic = pkgs.stdenvNoCC.mkDerivation { name = "shellrc-generic"; src = ./.; installPhase = '' mkdir -p "$out/etc/shellrc.d" cp -r ./shellrc.d/. "$out/etc/shellrc.d/" ''; }; shellrc-desktop = pkgs.stdenvNoCC.mkDerivation { name = "shellrc-desktop"; src = ./.; installPhase = '' mkdir -p "$out/etc/shellrc.d" cp -r ./shellrc-desktop.d/. "$out/etc/shellrc.d/" ''; }; shellrc-bash = pkgs.stdenvNoCC.mkDerivation { name = "shellrc-bash"; src = ./.; propagatedBuildInputs = [shellrcPkgs.shellrc-generic]; installPhase = '' mkdir -p "$out/etc/bashrc.d" cp -r ./bashrc.d/. "$out/etc/bashrc.d/" cat >"$out/etc/bashrc.d/shellrc" <"$out/etc/zshrc.d/shellrc" <