From 4536e9e5dd826eb0e69c930312ba8f66e9c16175 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sun, 14 Apr 2024 20:11:14 +0200 Subject: wip: read posts --- flake.nix | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix index 67bcc1f..2faa85b 100644 --- a/flake.nix +++ b/flake.nix @@ -1,14 +1,19 @@ { description = "My website, alanpearce.eu"; inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; - inputs.flake-utils.url = "github:numtide/flake-utils"; - inputs.flake-compat = { + inputs.utils.url = "github:numtide/flake-utils"; + inputs.compat = { url = "github:edolstra/flake-compat"; flake = false; }; + inputs.gomod2nix = { + url = "github:tweag/gomod2nix"; + inputs.nixpkgs.follows = "nixpkgs"; + inputs.flake-utils.follows = "utils"; + }; - outputs = { nixpkgs, flake-utils, ... }: - flake-utils.lib.eachDefaultSystem + outputs = { nixpkgs, utils, gomod2nix, ... }: + utils.lib.eachDefaultSystem (system: let pkgs = nixpkgs.legacyPackages.${system}; @@ -19,13 +24,18 @@ gzip zstd git + go ]; in rec { devShells = { default = pkgs.mkShell { packages = with pkgs; [ - bun + gopls + gotools + go-tools + gomod2nix.packages.${system}.default + gci flyctl ] ++ nativeBuildInputs; }; -- cgit 1.4.1