aboutsummaryrefslogblamecommitdiff
path: root/flakes/libspf2/flake.nix
blob: af1deea9567c260e1cc3f01ea87373830ab71c04 (plain) (tree)
1
2
3
4
5
6
7
8
9








                                                                                                                             
                                        
            



                                                                                 
                                

                                
     







                                                        
 
{
  description = "Sender Policy Framework record checking library";

  inputs.flake-utils.url = "github:numtide/flake-utils";
  inputs.nixpkgs.url = "github:NixOS/nixpkgs";

  outputs = { self, flake-utils, nixpkgs }: flake-utils.lib.eachSystem ["aarch64-linux" "i686-linux" "x86_64-linux"] (system:
    let
      pkgs = import nixpkgs { inherit system; overlays = []; };
      libspf2 = pkgs.callPackage ./. {};
    in rec {
      packages.libspf2 = libspf2;
      defaultPackage = libspf2;
      legacyPackages.libfspf2 = libspf2;
      apps.libspf2 = flake-utils.lib.mkApp { drv = libspf2; name = "spfquery"; };
      defaultApp = apps.libspf2;
      checks.build = libspf2;
      hydraJobs.build = libspf2;
    }
  ) // rec {
    overlays = {
      libspf2 = final: prev: {
        libspf2 = self.defaultPackage."${final.system}";
      };
    };
    overlay = overlays.libspf2;
  };
}