Skip to content

Commit

Permalink
chore: Add apps.default in flake output
Browse files Browse the repository at this point in the history
  • Loading branch information
bow committed Jul 22, 2024
1 parent b30ba62 commit c31e99d
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,18 @@
statix
(poetry.withPlugins (_ps: [ pythonPkgs.poetry-dynamic-versioning ]))
];
app = p2n.mkPoetryApplication {
inherit overrides python;
projectDir = self;
};
in
{
apps = {
default = {
type = "app";
program = "${app}/bin/${app.pname}";
};
};
devShells = rec {
ci = pkgs.mkShellNoCC { packages = shellPkgs; };
default = ci.overrideAttrs (
Expand All @@ -62,10 +72,6 @@
};
packages =
let
app = p2n.mkPoetryApplication {
inherit overrides python;
projectDir = self;
};
imgTag = if app.version != "0.0.dev0" then app.version else "latest";
imgAttrs = {
name = "ghcr.io/bow/${app.pname}";
Expand Down

0 comments on commit c31e99d

Please sign in to comment.