{ inputs = { naersk = { url = github:nix-community/naersk; }; utils = { url = github:numtide/flake-utils; }; }; outputs = { self, nixpkgs, naersk, utils, ... }: utils.lib.eachDefaultSystem (system: let pkgs = nixpkgs.legacyPackages.${system}; package = pkgs.callPackage ./derivation.nix { naersk = naersk.lib.${system}; }; in rec { checks = packages; packages.lingo = package; defaultPackage = package; overlay = (final: prev: { lingo = package; }); } ) // { hydraJobs = let hydraSystems = [ "x86_64-linux" "aarch64-linux" ]; in builtins.foldl' (hydraJobs: system: builtins.foldl' (hydraJobs: pkgName: nixpkgs.lib.recursiveUpdate hydraJobs { ${pkgName}.${system} = self.packages.${system}.${pkgName}; } ) hydraJobs (builtins.attrNames self.packages.${system}) ) { } hydraSystems; }; }