initial working version

This commit is contained in:
Abel Luck 2026-05-05 13:43:02 +02:00
parent 4d8b83cbb6
commit 8318f9fe70
15 changed files with 917 additions and 4 deletions

View file

@ -11,9 +11,27 @@
forAllSystems = fn: nixpkgs.lib.genAttrs systems (system: fn nixpkgs.legacyPackages.${system});
in
{
#packages = forAllSystems (pkgs: {
# default = pkgs.callPackage ./package.nix { };
#});
packages = forAllSystems (pkgs: {
default = pkgs.buildGoModule {
pname = "dnstt_exporter";
version = "0.1.0";
src = ./.;
vendorHash = "sha256-+olXxVW9VcvapOuJGas70RIfJgMzUv6mndzJi6Apw+s=";
subPackages = [ "cmd/dnstt_exporter" ];
};
});
checks = forAllSystems (pkgs: {
tests = self.packages.${pkgs.stdenv.hostPlatform.system}.default.overrideAttrs (_: {
doCheck = true;
checkPhase = ''
runHook preCheck
go test ./...
runHook postCheck
'';
});
});
#checks = forAllSystems (
# pkgs: