Add overlay, package, and app to flake

This commit is contained in:
Tim Van Baak 2022-12-13 13:39:06 -08:00
parent 0a0fe1f73d
commit 9c5ed994ea

View File

@ -12,6 +12,16 @@
pkgs = nixpkgs.legacyPackages.${system}; pkgs = nixpkgs.legacyPackages.${system};
in in
{ {
packages.${system}.default = (import nixpkgs {
inherit system;
overlays = [ self.overlays.default ];
}).friendly-hex;
apps.${system}.default = {
type = "app";
program = "${self.packages.${system}.default}/bin/friendly-hex";
};
devShells.${system}.default = pkgs.mkShell { devShells.${system}.default = pkgs.mkShell {
buildInputs = [ (pkgs.python3.withPackages (py: [ py.poetry ])) ]; buildInputs = [ (pkgs.python3.withPackages (py: [ py.poetry ])) ];
shellHook = '' shellHook = ''
@ -19,5 +29,12 @@
''; '';
}; };
}; };
in my-flake.outputs-for each systems; in (my-flake.outputs-for each systems) //
{
overlays.default = final: prev: {
friendly-hex = (final.poetry2nix.mkPoetryApplication {
projectDir = builtins.path { path = ./.; };
});
};
};
} }