From 2d339618c7ebd88e57d7c67819f29fe6ad7ea6ca Mon Sep 17 00:00:00 2001 From: Sebastian Estrella <2049686+sestrella@users.noreply.github.com> Date: Tue, 26 Nov 2024 03:24:49 -0500 Subject: [PATCH] Move overlay up to pkgs arguments --- flake.nix | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/flake.nix b/flake.nix index cb7ae61..8ca6dcb 100644 --- a/flake.nix +++ b/flake.nix @@ -20,14 +20,15 @@ perSystem = { config, pkgs, system, ... }: { _module.args.pkgs = import nixpkgs { inherit system; - overlays = [ gomod2nix.overlays.default ]; + overlays = [ + gomod2nix.overlays.default + (final: prev: { + iecs = config.packages.default; + }) + ]; }; - overlayAttrs = { - iecs = config.packages.iecs; - }; - - packages.iecs = pkgs.buildGoApplication { + packages.default = pkgs.buildGoApplication { pname = "iecs"; version = "0.1.0"; src = ./.;