We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 10a4616 commit 94c53c5Copy full SHA for 94c53c5
.github/workflows/golangci-lint.yml
nix/packages/docs.nix
@@ -1,4 +1,8 @@
1
-{ pkgs, perSystem, ... }:
+{
2
+ pkgs,
3
+ perSystem,
4
+ ...
5
+}:
6
pkgs.stdenvNoCC.mkDerivation {
7
name = "docs";
8
nix/packages/treefmt/default.nix
@@ -63,6 +63,19 @@ in
63
git config --global user.name "Treefmt Test"
64
'';
65
66
+ passthru.tests = {
67
+ golangci-lint = perSystem.self.treefmt.overrideAttrs (old: {
68
+ nativeBuildInputs = old.nativeBuildInputs ++ [pkgs.golangci-lint];
69
+ buildPhase = ''
70
+ HOME=$TMPDIR
71
+ golangci-lint run
72
+ '';
73
+ installPhase = ''
74
+ touch $out
75
76
+ });
77
+ };
78
+
79
meta = with lib; {
80
description = "treefmt: one CLI to format your repo";
81
homepage = "https://github.com/numtide/treefmt";
0 commit comments