2022-04-29 16:35:48 +00:00
|
|
|
{
|
|
|
|
description = "Application packaged using poetry2nix";
|
|
|
|
|
|
|
|
inputs.flake-utils.url = "github:numtide/flake-utils";
|
|
|
|
inputs.nixpkgs.url = "github:NixOS/nixpkgs";
|
|
|
|
inputs.poetry2nix.url = "github:nix-community/poetry2nix";
|
|
|
|
|
|
|
|
outputs = { self, nixpkgs, flake-utils, poetry2nix }:
|
|
|
|
{
|
|
|
|
# Nixpkgs overlay providing the application
|
|
|
|
overlay = nixpkgs.lib.composeManyExtensions [
|
|
|
|
poetry2nix.overlay
|
|
|
|
(final: prev: {
|
|
|
|
# The application
|
2023-09-14 21:07:15 +00:00
|
|
|
NetExec = prev.poetry2nix.mkPoetryApplication {
|
2022-04-29 16:35:48 +00:00
|
|
|
projectDir = ./.;
|
|
|
|
};
|
|
|
|
})
|
|
|
|
];
|
|
|
|
} // (flake-utils.lib.eachDefaultSystem (system:
|
|
|
|
let
|
|
|
|
pkgs = import nixpkgs {
|
|
|
|
inherit system;
|
|
|
|
overlays = [ self.overlay ];
|
|
|
|
};
|
|
|
|
in
|
|
|
|
{
|
|
|
|
apps = {
|
2023-09-14 21:07:15 +00:00
|
|
|
NetExec = pkgs.NetExec;
|
2022-04-29 16:35:48 +00:00
|
|
|
};
|
|
|
|
|
2023-09-14 21:07:15 +00:00
|
|
|
defaultApp = pkgs.NetExec;
|
2022-04-29 16:47:43 +00:00
|
|
|
|
2023-09-14 21:07:15 +00:00
|
|
|
packages = { NetExec = pkgs.NetExec; };
|
2022-04-29 16:35:48 +00:00
|
|
|
}));
|
|
|
|
}
|