diff --git a/elisp-packages.nix b/elisp-packages.nix index 8b3c124..c07db2a 100644 --- a/elisp-packages.nix +++ b/elisp-packages.nix @@ -103,6 +103,14 @@ meta = { description = "build straight with Git dependency added for Doom"; }; + # Do not install files that shadow builtins and/or have undesirable side + # effects if loaded. + postUnpack = '' + filteredSrc=$PWD/filteredSrc + mkdir $filteredSrc + cp $sourceRoot/straight*.el $filteredSrc + sourceRoot=$filteredSrc + ''; nativeBuildInputs = [ git ]; }; # Nix uses a Melpa recipe that assumes the upstream CMake repo layout.