{ lib, pkgs, ... }: let inherit (pkgs) buildGoModule; in { environment.systemPackages = [ (buildGoModule rec { name = "raceattr"; pname = name; tags = [ "raceattr" ]; src = builtins.path { name = "${pname}-src"; path = lib.cleanSource ../../cmd/sharefs/test; filter = path: type: (type == "directory") || (type == "regular" && lib.hasSuffix ".go" path); }; vendorHash = null; preBuild = '' go mod init hakurei.app/raceattr >& /dev/null ''; }) ]; }