NetExec/flake.nix

37 lines
938 B
Nix
Raw Normal View History

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
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 = {
NetExec = pkgs.NetExec;
2022-04-29 16:35:48 +00:00
};
defaultApp = pkgs.NetExec;
2022-04-29 16:47:43 +00:00
packages = { NetExec = pkgs.NetExec; };
2022-04-29 16:35:48 +00:00
}));
}