Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions pkgs/development/lua-modules/overrides.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
{ stdenv
, cargo
, cmake

# plenary utilities
, which
, findutils
, coreutils
, curl
, cyrus_sasl
, dbus
Expand Down Expand Up @@ -439,6 +444,32 @@ with prev;
});


plenary-nvim = prev.plenary-nvim.overrideAttrs (oa: {
postPatch = ''
sed -Ei lua/plenary/curl.lua \
-e 's@(command\s*=\s*")curl(")@\1${curl}/bin/curl\2@'
'';

# disabled for now because too flaky
doCheck = false;
# for env/find/ls
checkInputs = [
which
neovim-unwrapped
coreutils
findutils
];

checkPhase = ''
runHook preCheck
# remove failing tests, need internet access for instance
rm tests/plenary/job_spec.lua tests/plenary/scandir_spec.lua tests/plenary/curl_spec.lua
export HOME="$TMPDIR"
make test
runHook postCheck
'';
});

# as advised in https://github.com/luarocks/luarocks/issues/1402#issuecomment-1080616570
# we shouldn't use luarocks machinery to build complex cmake components
libluv = stdenv.mkDerivation {
Expand Down