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.
This commit is contained in:
Marien Zwart 2024-03-18 22:33:18 +11:00
parent 68f5e44763
commit 9d34ae17a5
No known key found for this signature in database

View file

@ -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.