aboutsummaryrefslogtreecommitdiff
path: root/pkgs.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs.nix')
-rw-r--r--pkgs.nix14
1 files changed, 7 insertions, 7 deletions
diff --git a/pkgs.nix b/pkgs.nix
index f171859..ec5be7f 100644
--- a/pkgs.nix
+++ b/pkgs.nix
@@ -19,14 +19,14 @@
shellrc-bash = pkgs.stdenvNoCC.mkDerivation {
name = "shellrc-bash";
src = ./.;
- propagatedBuildInputs = [shellrcPkgs.shellrc-generic];
+ nativeBuildInputs = [pkgs.installShellFiles];
installPhase = ''
mkdir -p "$out/etc/bashrc.d"
cp -r ./bashrc.d/. "$out/etc/bashrc.d/"
cat >"$out/etc/bashrc.d/shellrc" <<EOF
# Load ShellRC files
- for p in $NIX_PROFILES; do
- for sh in $p/etc/shellrc.d/*; do
+ for p in \$NIX_PROFILES; do
+ for sh in \$p/etc/shellrc.d/*; do
[ -r "\$sh" ] && . "\$sh"
done
done
@@ -36,17 +36,17 @@
done
'';
};
- shellrc-zsh = pkgs.stdenvNoCC.mkDerivation {
+ shellrc-zsh= pkgs.stdenvNoCC.mkDerivation {
name = "shellrc-zsh";
src = ./.;
- propagatedBuildInputs = [shellrcPkgs.shellrc-generic];
+ nativeBuildInputs = [pkgs.installShellFiles];
installPhase = ''
mkdir -p "$out/etc/zshrc.d"
cp -r ./zshrc.d/. "$out/etc/zshrc.d/"
cat >"$out/etc/zshrc.d/shellrc" <<EOF
# Load ShellRC files
- for p in $NIX_PROFILES; do
- for sh in $p/etc/shellrc.d/*; do
+ for profile in \''${=NIX_PROFILES}; do
+ for sh in \$profile/etc/shellrc.d/*; do
[ -r "\$sh" ] && . "\$sh"
done
done