all repos — homestead @ e680fe5c6d1889060be9c8b26302f8c89642e83c

Code for my website

remove gomod2nix

Alan Pearce
commit

e680fe5c6d1889060be9c8b26302f8c89642e83c

parent

5b66286b3f86e4268e3af68ced4c63d410552b17

1 file changed, 0 insertions(+), 33 deletions(-)

changed files
M flake.nixflake.nix
@@ -2,9 +2,6 @@ {
description = "My website, alanpearce.eu"; inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; inputs.utils.url = "github:numtide/flake-utils"; - inputs.gomod2nix.url = "github:nix-community/gomod2nix"; - inputs.gomod2nix.inputs.nixpkgs.follows = "nixpkgs"; - inputs.gomod2nix.inputs.flake-utils.follows = "utils"; inputs.pre-commit-hooks.url = "github:cachix/pre-commit-hooks.nix"; inputs.pre-commit-hooks.inputs.nixpkgs.follows = "nixpkgs"; inputs.treefmt-nix.url = "github:numtide/treefmt-nix";
@@ -15,7 +12,6 @@ self,
nixpkgs, utils, pre-commit-hooks, - gomod2nix, treefmt-nix, ... }:
@@ -24,9 +20,6 @@ system:
let pkgs = import nixpkgs { inherit system; - overlays = [ - gomod2nix.overlays.default - ]; }; commonShellPackages = with pkgs; [ go
@@ -41,7 +34,6 @@ wgo
gofumpt gopls gotools - gomod2nix.legacyPackages.${system}.gomod2nix systemfd modd
@@ -56,9 +48,6 @@ gofumpt.enable = true;
golines.enable = true; prettier.enable = true; }; - settings.formatter = { - taplo.excludes = [ "gomod2nix.toml" ]; - }; }; in {
@@ -102,29 +91,7 @@ in
builtins.toString script; }; gotest.enable = true; - gomod2nix = { - enable = true; - name = "gomod2nix"; - description = "Import go.mod updates to nix"; - types_or = [ "go-sum" ]; - entry = "${pkgs.gomod2nix}/bin/gomod2nix"; - pass_filenames = false; - }; }; - }; - }; - packages = { - build = pkgs.buildGoApplication { - pname = "build"; - version = self.shortRev or self.dirtyShortRev; - src = ./.; - modules = ./gomod2nix.toml; - subPackages = [ "domain/content/builder/build" ]; - nativeBuildInputs = with pkgs; [ makeWrapper ]; - - postInstall = '' - wrapProgram $out/bin/build --set KO_DATA_PATH ${./kodata} - ''; }; }; }