This commit is contained in:
Kopatz
2025-08-03 15:15:50 +02:00
parent fc096a8b24
commit acf8674a6d
2 changed files with 68 additions and 39 deletions

View File

@@ -4,6 +4,29 @@ let
addPatches = pkg: patches:
pkg.overrideAttrs
(oldAttrs: { patches = (oldAttrs.patches or [ ]) ++ patches; });
neotestPatch = '' diff --git a/tests/unit/client/strategies/integrated_spec.lua b/tests/unit/client/strategies/integrated_spec.lua
index 196c2e78..42a3df76 100644
--- a/tests/unit/client/strategies/integrated_spec.lua
+++ b/tests/unit/client/strategies/integrated_spec.lua
@@ -34,7 +34,7 @@ describe("integrated strategy", function()
a.it("stops the job", function()
local process = strategy({
- command = { "bash", "-c", "sleep 1" },
+ command = { "bash", "-c", "sleep 10" },
strategy = {
height = 10,
width = 10,
@@ -47,7 +47,7 @@ describe("integrated strategy", function()
a.it("streams output", function()
local process = strategy({
- command = { "bash", "-c", "printf hello; sleep 0; printf world" },
+ command = { "bash", "-c", "printf hello; sleep 0.1; printf world" },
strategy = {
height = 10,
width = 10,
'';
in
{
# This one brings our custom packages from the 'pkgs' directory
@@ -46,6 +69,12 @@ in
};
};
luajitPackages = prev.luajitPackages // {
neotest = prev.luajitPackages.neotest.overrideAttrs {
patches = [ (prev.writeText "neotest-patch" neotestPatch) ];
};
};
#hyprland =
# inputs.hyprland.packages.${prev.stdenv.hostPlatform.system}.hyprland;
#xdg-desktop-portal-hyprland =