diff --git a/nix/packages/nixos-facter/default.nix b/nix/packages/nixos-facter/default.nix index 78950c7..1863819 100644 --- a/nix/packages/nixos-facter/default.nix +++ b/nix/packages/nixos-facter/default.nix @@ -51,7 +51,6 @@ in libusb1 util-linux pciutils - systemdMinimal ]; ldflags = [ diff --git a/nix/packages/nixos-facter/tests/default.nix b/nix/packages/nixos-facter/tests/default.nix index e570e91..b339c7d 100644 --- a/nix/packages/nixos-facter/tests/default.nix +++ b/nix/packages/nixos-facter/tests/default.nix @@ -15,6 +15,17 @@ in # for now we only run the tests in x86_64-linux since we don't have access to a bare-metal ARM box or a VM that supports nested # virtualisation which makes the test take forever and ultimately fail pkgs.lib.optionalAttrs pkgs.stdenv.isx86_64 { + golangci-lint = perSystem.self.nixos-facter.overrideAttrs (old: { + nativeBuildInputs = old.nativeBuildInputs ++ [pkgs.golangci-lint]; + buildPhase = '' + HOME=$TMPDIR + golangci-lint run + ''; + installPhase = '' + touch $out + ''; + }); + basic = diskoLib.testLib.makeDiskoTest { inherit pkgs; name = "basic";