From 13d70fc7756a3d576732031830a261b87265af75 Mon Sep 17 00:00:00 2001 From: Natsu Kagami Date: Fri, 10 Feb 2023 11:52:00 +0100 Subject: [PATCH] Add perl stuff --- home/fish/fish.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/home/fish/fish.nix b/home/fish/fish.nix index ebabcd4..bc8330f 100644 --- a/home/fish/fish.nix +++ b/home/fish/fish.nix @@ -29,7 +29,7 @@ nix run $impure nixpkgs#$argv[1] -- $argv[2..] else echo "nx [--impure] {package} [args...]" - exit 1 + return 1 end ''; wraps = "nix run"; @@ -144,6 +144,15 @@ # Set up fzf bindings fzf_configure_bindings --directory=\ct --processes=\cp + + # Perl stuff + set -x PATH ${config.home.homeDirectory}/perl5/bin $PATH 2>/dev/null; + set -q PERL5LIB; and set -x PERL5LIB ${config.home.homeDirectory}/perl5/lib/perl5:$PERL5LIB; + set -q PERL5LIB; or set -x PERL5LIB ${config.home.homeDirectory}/perl5/lib/perl5; + set -q PERL_LOCAL_LIB_ROOT; and set -x PERL_LOCAL_LIB_ROOT ${config.home.homeDirectory}/perl5:$PERL_LOCAL_LIB_ROOT; + set -q PERL_LOCAL_LIB_ROOT; or set -x PERL_LOCAL_LIB_ROOT ${config.home.homeDirectory}/perl5; + set -x PERL_MB_OPT --install_base\ \"${config.home.homeDirectory}/perl5\"; + set -x PERL_MM_OPT INSTALL_BASE=${config.home.homeDirectory}/perl5; ''; plugins = [ {