From 9d34ae17a5c9b69cb3c7bfa0cb90b9b19ac4bf73 Mon Sep 17 00:00:00 2001 From: Marien Zwart Date: Mon, 18 Mar 2024 22:33:18 +1100 Subject: [PATCH] Clean up straight install We were installing bootstrap.el, install.el and indent.el. The former two would have undesirable side effects if loaded, the latter shadows a built-in library. --- elisp-packages.nix | 8 ++++++++ 1 file changed, 8 insertions(+) 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.