Skip to content

Commit

Permalink
luaPackages.vusted: fix build by setting bounds
Browse files Browse the repository at this point in the history
  • Loading branch information
teto committed Apr 30, 2024
1 parent e5a0a45 commit 199efdb
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions pkgs/development/lua-modules/overrides.nix
Original file line number Diff line number Diff line change
Expand Up @@ -711,9 +711,9 @@ in
propagatedBuildInputs = oa.propagatedBuildInputs ++ [ sol2 ];

postPatch = ''
substituteInPlace CMakeLists.txt \
--replace "TOML_PLUS_PLUS_SRC" "${tomlplusplus.src}" \
--replace "MAGIC_ENUM_SRC" "${magic-enum.src}"
substituteInPlace CMakeLists.txt --replace-fail \
"TOML_PLUS_PLUS_SRC" \
"${tomlplusplus.src}"
'';
});

Expand All @@ -738,9 +738,11 @@ in

vusted = prev.vusted.overrideAttrs (_: {
postConfigure = ''
cat ''${rockspecFilename}
substituteInPlace ''${rockspecFilename} \
--replace '"luasystem = 0.2.1",' '"luasystem",'
--replace-fail '"luasystem = 0.2.1",' "'luasystem >= 0.2',"
'';

# make sure vusted_entry.vim doesn't get wrapped
postInstall = ''
chmod -x $out/bin/vusted_entry.vim
Expand Down

0 comments on commit 199efdb

Please sign in to comment.