flake: fix support for Nix 2.8 and beyond
This commit is contained in:
parent
fc9b901759
commit
7d6a0158e5
17
flake.nix
17
flake.nix
@ -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
|
||||||
];
|
];
|
||||||
});
|
}
|
||||||
|
);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user