Add overlay, package, and app to flake
This commit is contained in:
parent
0a0fe1f73d
commit
9c5ed994ea
19
flake.nix
19
flake.nix
@ -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 = ./.; };
|
||||||
|
});
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user