dkim-report/flake.nix

37 lines
900 B
Nix
Raw Permalink Normal View History

2024-02-19 19:34:22 +01:00
{
description = "A simple flake to generate DKIM reports.";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
2024-04-09 19:59:40 +02:00
flake-utils.url = "github:numtide/flake-utils";
2024-02-19 19:34:22 +01:00
};
outputs =
2024-03-10 15:00:06 +01:00
{
2024-04-09 19:59:40 +02:00
self,
flake-utils,
nixpkgs,
}:
flake-utils.lib.eachDefaultSystem (
system:
let
pkgs = import nixpkgs { inherit system; };
in
{
packages = rec {
2024-03-14 20:25:07 +01:00
dkim-report = pkgs.writeShellApplication {
name = "reports";
runtimeInputs = [
pkgs.dmarc-report-converter
pkgs.python3
];
text = (builtins.readFile ./reports.sh);
};
2024-04-09 19:59:40 +02:00
default = dkim-report;
2024-02-19 19:34:22 +01:00
};
2024-04-09 19:59:40 +02:00
apps = rec {
dkim-report = flake-utils.lib.mkApp { drv = self.packages.${system}.dkim-report; };
default = dkim-report;
};
}
);
2024-02-19 19:34:22 +01:00
}