From 6d55ee536e902d059380f79e870d06547627cc7c Mon Sep 17 00:00:00 2001 From: Ophestra Date: Tue, 7 Jul 2026 18:32:56 +0900 Subject: test: move nix files These are too much clutter. Move them to test directory until the test suite replacement is upstreamed. Signed-off-by: Ophestra --- test/hsu.nix | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 test/hsu.nix (limited to 'test/hsu.nix') diff --git a/test/hsu.nix b/test/hsu.nix new file mode 100644 index 00000000..7acb3529 --- /dev/null +++ b/test/hsu.nix @@ -0,0 +1,23 @@ +{ + lib, + buildGoModule, + hakurei ? abort "hakurei package required", +}: + +buildGoModule { + pname = "${hakurei.pname}-hsu"; + inherit (hakurei) version; + + src = ../cmd/hsu; + inherit (hakurei) vendorHash; + env.CGO_ENABLED = 0; + + preBuild = '' + go mod init hsu >& /dev/null + ''; + + ldflags = lib.attrsets.foldlAttrs ( + ldflags: name: value: + ldflags ++ [ "-X main.${name}=${value}" ] + ) [ "-s -w" ] { hakureiPath = "${hakurei}/libexec/hakurei"; }; +} -- cgit v1.3.1