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