From 5548692979ac3246dbf794b48883822c4a8a218e Mon Sep 17 00:00:00 2001 From: jacekpoz Date: Tue, 13 Aug 2024 01:06:41 +0200 Subject: [PATCH 1/2] add headers during installation in the drv --- default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/default.nix b/default.nix index 125a066..5c2afab 100644 --- a/default.nix +++ b/default.nix @@ -36,6 +36,7 @@ in stdenv.mkDerivation { runHook preInstall install -Dm755 target/lib${pname}.so -t $out/lib + install -Dm755 include/* -t $out/include runHook postInstall ''; From 520b0b97a0af0d09faf938cfc739e91b47ee04c2 Mon Sep 17 00:00:00 2001 From: jacekpoz Date: Tue, 13 Aug 2024 01:18:10 +0200 Subject: [PATCH 2/2] fix braces in amogus example --- examples/amogus.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/examples/amogus.c b/examples/amogus.c index 342fb6e..a3f3fa1 100644 --- a/examples/amogus.c +++ b/examples/amogus.c @@ -8,14 +8,14 @@ int main(void) { return EXIT_FAILURE; } - PtkColor red = { .r = 1.0f, .g = 0.0f, .b = 0.0f}; + PtkColor red = { .r = 1.0f, .g = 0.0f, .b = 0.0f }; return ptk_run(PTK_BOX( - ptk_rect((PtkPos){ .x = 250.0f, .y = 200.0f}, (PtkSize){ .w = 300.0f, .h = 200.0f}, red), - ptk_rect((PtkPos){ .x = 250.0f, .y = 400.0f}, (PtkSize){ .w = 100.0f, .h = 100.0f}, red), - ptk_rect((PtkPos){ .x = 450.0f, .y = 400.0f}, (PtkSize){ .w = 100.0f, .h = 100.0f}, red), - ptk_circle((PtkPos){ .x = 400.0f, .y = 200.0f}, 150.0f, red), - ptk_rect((PtkPos){ .x = 200.0f, .y = 200.0f}, (PtkSize){ .w = 50.0f, .h = 125.0f}, red), - ptk_ellipse((PtkPos){ .x = 500.0f, .y = 200.0f}, (PtkSize){ .w = 100.0f, .h = 50.0f}, (PtkColor){ .r = 1.0f, .g = 1.0f, .b = 1.0f}), + ptk_rect((PtkPos){ .x = 250.0f, .y = 200.0f }, (PtkSize){ .w = 300.0f, .h = 200.0f }, red), + ptk_rect((PtkPos){ .x = 250.0f, .y = 400.0f }, (PtkSize){ .w = 100.0f, .h = 100.0f }, red), + ptk_rect((PtkPos){ .x = 450.0f, .y = 400.0f }, (PtkSize){ .w = 100.0f, .h = 100.0f }, red), + ptk_circle((PtkPos){ .x = 400.0f, .y = 200.0f }, 150.0f, red), + ptk_rect((PtkPos){ .x = 200.0f, .y = 200.0f }, (PtkSize){ .w = 50.0f, .h = 125.0f }, red), + ptk_ellipse((PtkPos){ .x = 500.0f, .y = 200.0f }, (PtkSize){ .w = 100.0f, .h = 50.0f }, (PtkColor){ .r = 1.0f, .g = 1.0f, .b = 1.0f }), )); }