Skip to content

Commit 3cf289d

Browse files
committed
feat(flake): expose devshell entrypoint as app
thus demonstrating support for `nix run`.
1 parent fb76d5b commit 3cf289d

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

flake.nix

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,6 @@
1818
}
1919
);
2020

21-
devShells = eachSystem (system: {
22-
default = self.legacyPackages.${system}.fromTOML ./devshell.toml;
23-
});
24-
2521
templates = rec {
2622
toml = {
2723
path = ./templates/toml;
@@ -33,6 +29,15 @@
3329
};
3430
default = toml;
3531
};
32+
33+
devShells = eachSystem (system: {
34+
default = self.legacyPackages.${system}.fromTOML ./devshell.toml;
35+
});
36+
37+
apps = eachSystem (system: {
38+
default = self.devShells.${system}.default.flakeApp;
39+
});
40+
3641
# Import this overlay into your instance of nixpkgs
3742
overlays.default = import ./overlay.nix;
3843
lib = {

0 commit comments

Comments
 (0)