define default flake, pkg overlay
This commit is contained in:
parent
9a21dc51e1
commit
2df1004fe9
1 changed files with 4 additions and 5 deletions
|
@ -31,7 +31,7 @@
|
||||||
pkgs = nixpkgsFor.${system};
|
pkgs = nixpkgsFor.${system};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
weather = pkgs.buildGoModule {
|
default = pkgs.buildGoModule {
|
||||||
pname = "weather";
|
pname = "weather";
|
||||||
inherit version;
|
inherit version;
|
||||||
# In 'nix develop', we don't need a copy of the source tree
|
# In 'nix develop', we don't need a copy of the source tree
|
||||||
|
@ -52,9 +52,8 @@
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
# The default package for 'nix build'. This makes sense if the
|
overlays.default = (final: prev: {
|
||||||
# flake provides only one package or there is a clear "main"
|
weather = self.packages.${prev.system}.default;
|
||||||
# package.
|
});
|
||||||
defaultPackage = forAllSystems (system: self.packages.${system}.weather);
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue