update flake.nix
This commit is contained in:
parent
754df647ab
commit
1f99487aaf
17
flake.nix
17
flake.nix
|
@ -16,9 +16,9 @@
|
||||||
devshell,
|
devshell,
|
||||||
...
|
...
|
||||||
} @ inputs:
|
} @ inputs:
|
||||||
rec {
|
{
|
||||||
overlays.default = import ./overlay.nix;
|
overlays.default = import ./overlay.nix;
|
||||||
overlay = overlays.default;
|
overlay = self.overlays.default;
|
||||||
}
|
}
|
||||||
// flake-utils.lib.eachSystem [
|
// flake-utils.lib.eachSystem [
|
||||||
"x86_64-linux"
|
"x86_64-linux"
|
||||||
|
@ -29,10 +29,10 @@
|
||||||
inherit system;
|
inherit system;
|
||||||
overlays = [
|
overlays = [
|
||||||
devshell.overlay
|
devshell.overlay
|
||||||
(import ./overlay.nix)
|
self.overlays.default
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
in rec {
|
in {
|
||||||
packages.bundled = pkgs.deno2nix.mkBundled {
|
packages.bundled = pkgs.deno2nix.mkBundled {
|
||||||
name = "example";
|
name = "example";
|
||||||
version = "0.1.0";
|
version = "0.1.0";
|
||||||
|
@ -57,15 +57,16 @@
|
||||||
importMap = ./import_map.json;
|
importMap = ./import_map.json;
|
||||||
entrypoint = ./mod.ts;
|
entrypoint = ./mod.ts;
|
||||||
};
|
};
|
||||||
packages.default = packages.executable;
|
packages.default = self.packages.${system}.executable;
|
||||||
|
defaultPackage = self.packages.${system}.default;
|
||||||
defaultPackage = packages.default;
|
|
||||||
|
|
||||||
apps.default = {
|
apps.default = {
|
||||||
type = "app";
|
type = "app";
|
||||||
program = "${defaultPackage}/bin/example";
|
program = "${self.packages.${system}.executable}/bin/example";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
checks = self.packages.${system};
|
||||||
|
|
||||||
devShell = pkgs.devshell.mkShell {
|
devShell = pkgs.devshell.mkShell {
|
||||||
imports = [
|
imports = [
|
||||||
(pkgs.devshell.importTOML ./devshell.toml)
|
(pkgs.devshell.importTOML ./devshell.toml)
|
||||||
|
|
Loading…
Reference in a new issue