Files
hakurei/test/interactive/raceattr.nix
T
cat 6d55ee536e 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 <cat@gensokyo.uk>
2026-07-07 18:56:27 +09:00

31 lines
713 B
Nix

{ lib, pkgs, ... }:
{
security.wrappers.raceattr =
let
inherit (pkgs) buildGoModule;
in
{
setuid = true;
owner = "root";
group = "root";
source = "${
(buildGoModule rec {
name = "raceattr";
pname = name;
tags = [ "raceattr" ];
src = builtins.path {
name = "${pname}-src";
path = lib.cleanSource ../sharefs;
filter = path: type: (type == "directory") || (type == "regular" && lib.hasSuffix ".go" path);
};
vendorHash = null;
preBuild = ''
go mod init hakurei.app/raceattr >& /dev/null
'';
})
}/bin/raceattr";
};
}