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