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:
|
||||
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
|
||||
];
|
||||
});
|
||||
}
|
||||
);
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user