Files
smtprd-ng/flake.nix
2024-07-05 21:55:55 +02:00

43 lines
880 B
Nix

{
description = "SMTP forwarding relay daemon with signing and encryption";
inputs = {
nixpkgs.url = "nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs =
{ self
, nixpkgs
, flake-utils
,
}:
let
supportedSystems = [
"x86_64-linux"
"aarch64-darwin"
];
in
{
overlays.default = import ./overlay.nix { inherit self; };
}
// flake-utils.lib.eachSystem supportedSystems (
system:
let
pkgs = import nixpkgs { inherit system; };
in
{
packages = {
smtprd-ng = pkgs.callPackage ./. { };
};
packages.default = self.packages.${system}.smtprd-ng;
apps.default = {
type = "app";
program = "${self.packages.${system}.smtprd-ng}/bin/smtprd-ng";
};
}
);
}