flake: fix support for Nix 2.8 and beyond

This commit is contained in:
surtur 2022-04-26 13:51:11 +02:00
parent fc9b901759
commit 7d6a0158e5
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D

@ -29,8 +29,7 @@
packages = forAllSystems (system:
let
pkgs = nixpkgsFor.${system};
in
{
in rec {
go-xkcdreader = pkgs.buildGoModule {
pname = "go-xkcdreader";
inherit version;
@ -57,12 +56,15 @@
# package.
defaultPackage = forAllSystems (system: self.packages.${system}.go-xkcdreader);
defaultApp = forAllSystems (system: {
type = "app";
program = "${self.packages.${system}.go-xkcdreader}/bin/go-xkcdreader";
apps = forAllSystems (system: rec {
go-xkcdreader = {
type = "app";
program = "${self.packages.${system}.go-xkcdreader}/bin/go-xkcdreader";
};
default = go-xkcdreader;
});
devShell = forAllSystems (system:
devShells= forAllSystems (system:
let pkgs = nixpkgsFor.${system};
in pkgs.mkShell {
buildInputs = with pkgs; [
@ -71,6 +73,7 @@
gofumpt
go-tools
];
});
}
);
};
}