Skip to content

Commit f995c22

Browse files
committed
feat: factor out gomod2nix
1 parent c70ecc9 commit f995c22

File tree

2 files changed

+1
-71
lines changed

2 files changed

+1
-71
lines changed

flake.lock

+1-56
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

-15
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,13 @@
33
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
44
systems.url = "github:nix-systems/default";
55
devenv.url = "github:cachix/devenv";
6-
7-
gomod2nix = {
8-
url = "github:nix-community/gomod2nix";
9-
inputs.nixpkgs.follows = "nixpkgs";
10-
};
116
};
127

138
outputs = {
149
self,
1510
nixpkgs,
1611
devenv,
1712
systems,
18-
gomod2nix,
1913
...
2014
} @ inputs: let
2115
forEachSystem = nixpkgs.lib.genAttrs (import systems);
@@ -37,7 +31,6 @@
3731
packages = with pkgs; [
3832
automake
3933
go_1_23
40-
gomod2nix.legacyPackages.${system}.gomod2nix
4134
gotools
4235
golangci-lint
4336
go-tools
@@ -46,14 +39,6 @@
4639
pre-commit
4740
svu
4841
];
49-
50-
pre-commit.hooks.gomod2nix = {
51-
enable = true;
52-
pass_filenames = false;
53-
name = "gomod2nix";
54-
description = "Run gomod2nix before commit";
55-
entry = "${gomod2nix.legacyPackages.${system}.gomod2nix}/bin/gomod2nix";
56-
};
5742
}
5843
];
5944
};

0 commit comments

Comments
 (0)