37 lines
938 B
Nix
37 lines
938 B
Nix
{
|
|
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
|
|
NetExec = prev.poetry2nix.mkPoetryApplication {
|
|
projectDir = ./.;
|
|
};
|
|
})
|
|
];
|
|
} // (flake-utils.lib.eachDefaultSystem (system:
|
|
let
|
|
pkgs = import nixpkgs {
|
|
inherit system;
|
|
overlays = [ self.overlay ];
|
|
};
|
|
in
|
|
{
|
|
apps = {
|
|
NetExec = pkgs.NetExec;
|
|
};
|
|
|
|
defaultApp = pkgs.NetExec;
|
|
|
|
packages = { NetExec = pkgs.NetExec; };
|
|
}));
|
|
}
|