From be286a453d1902af09431f28a5a02a8c00a954ea Mon Sep 17 00:00:00 2001 From: seth Date: Fri, 5 Jul 2024 07:01:21 -0400 Subject: tree-wide: move dev outputs to dev/ --- dev/hydraJobs.nix | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 dev/hydraJobs.nix (limited to 'dev/hydraJobs.nix') diff --git a/dev/hydraJobs.nix b/dev/hydraJobs.nix new file mode 100644 index 0000000..9cc4617 --- /dev/null +++ b/dev/hydraJobs.nix @@ -0,0 +1,26 @@ +{ + lib, + self, + withSystem, + ... +}: +let + ciSystem = "x86_64-linux"; + derivFromCfg = deriv: deriv.config.system.build.toplevel or deriv.activationPackage; + mapCfgsToDerivs = lib.mapAttrs (lib.const derivFromCfg); +in +{ + flake.hydraJobs = withSystem ciSystem ( + { pkgs, self', ... }: + { + inherit (self') checks; + inherit (self') devShells; + darwinConfigurations = mapCfgsToDerivs self.darwinConfigurations; + homeConfigurations = mapCfgsToDerivs self.homeConfigurations; + nixosConfigurations = mapCfgsToDerivs self.nixosConfigurations // { + # please add aarch64 runners github...please... + atlas = lib.deepSeq (derivFromCfg self.nixosConfigurations.atlas).drvPath pkgs.emptyFile; + }; + } + ); +} -- cgit v1.2.3