define default flake, pkg overlay

This commit is contained in:
Seán C McCord 2022-12-31 14:01:41 -05:00
parent 9a21dc51e1
commit 2df1004fe9
Signed by: scm
GPG key ID: 8302D5513BFE9618

View file

@ -31,7 +31,7 @@
pkgs = nixpkgsFor.${system};
in
{
weather = pkgs.buildGoModule {
default = pkgs.buildGoModule {
pname = "weather";
inherit version;
# 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
# flake provides only one package or there is a clear "main"
# package.
defaultPackage = forAllSystems (system: self.packages.${system}.weather);
overlays.default = (final: prev: {
weather = self.packages.${prev.system}.default;
});
};
}