Skip to content

Commit

Permalink
Move overlay up to pkgs arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
sestrella committed Nov 26, 2024
1 parent 110d6d4 commit 2d33961
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ./.;
Expand Down

0 comments on commit 2d33961

Please sign in to comment.