From 9127b951e06ce82361dba77b5b3f9aeed30775b4 Mon Sep 17 00:00:00 2001
From: zowoq <59103226+zowoq@users.noreply.github.com>
Date: Thu, 17 Oct 2024 08:47:32 +1000
Subject: [PATCH] terraform/hydra-nixpkgs: add unfree-redist-darwin

---
 docs/package-sets.md       | 4 ++++
 terraform/hydra-nixpkgs.tf | 9 +++++++++
 2 files changed, 13 insertions(+)

diff --git a/docs/package-sets.md b/docs/package-sets.md
index d8a7dff..cd240ae 100644
--- a/docs/package-sets.md
+++ b/docs/package-sets.md
@@ -22,6 +22,10 @@ Built on `nixos-unstable-small` for `aarch64-linux`, `x86_64-linux`:
 
 - [https://hydra.nix-community.org/jobset/nixpkgs/unfree-redist](https://hydra.nix-community.org/jobset/nixpkgs/unfree-redist)
 
+Built on `nixpkgs-unstable` for `aarch64-darwin`, `x86_64-darwin`:
+
+- [https://hydra.nix-community.org/jobset/nixpkgs/unfree-redist-darwin](https://hydra.nix-community.org/jobset/nixpkgs/unfree-redist-darwin)
+
 Built on `nixos-$RELEASE-small` for `aarch64-linux`, `x86_64-linux`:
 
 - [https://hydra.nix-community.org/jobset/nixpkgs/unfree-redist-stable](https://hydra.nix-community.org/jobset/nixpkgs/unfree-redist-stable)
diff --git a/terraform/hydra-nixpkgs.tf b/terraform/hydra-nixpkgs.tf
index c3081b9..169c639 100644
--- a/terraform/hydra-nixpkgs.tf
+++ b/terraform/hydra-nixpkgs.tf
@@ -46,6 +46,15 @@ locals {
       scheduling_shares    = 5000
       supported_systems    = "[ \"aarch64-linux\" \"x86_64-linux\" ]"
     }
+    unfree_redist_darwin = {
+      name                 = "unfree-redist-darwin"
+      description          = "nixpkgs-unstable darwin unfree+redistributable"
+      nixpkgs_channel      = "https://github.com/NixOS/nixpkgs.git nixpkgs-unstable"
+      nixpkgs_release_file = "pkgs/top-level/release-unfree-redistributable.nix"
+      check_interval       = 1800
+      scheduling_shares    = 5000
+      supported_systems    = "[ \"aarch64-darwin\" \"x86_64-darwin\" ]"
+    }
     unfree_redist_full = {
       name                 = "unfree-redist-full"
       description          = "nixos-unstable unfree+redistributable full"