flake.nix: Use overlay from separate overlay.nix expression

This commit is contained in:
adisbladis 2022-05-26 18:16:19 +08:00
parent 0b8585ba6c
commit d1df21fc5a
2 changed files with 4 additions and 7 deletions

View file

@ -7,10 +7,7 @@
outputs = { self, nixpkgs, utils }:
{
overlay = final: prev: {
buildGoApplication = final.callPackage ./builder { };
gomod2nix = final.callPackage ./default.nix { };
};
overlay = import ./overlay.nix;
} //
(utils.lib.eachDefaultSystem
(system:

View file

@ -1,4 +1,4 @@
self: super: {
buildGoApplication = self.callPackage ./builder { };
gomod2nix = self.callPackage ./default.nix { };
final: prev: {
buildGoApplication = final.callPackage ./builder { };
gomod2nix = final.callPackage ./default.nix { };
}