From 66488eb825b249ebb975a0a04c5c2c3543c847f9 Mon Sep 17 00:00:00 2001
From: Mark Nipper <nipsy@bitgnome.net>
Date: Thu, 27 Feb 2025 00:05:58 -0800
Subject: Add Wine 9.4

---
 flake.nix                 | 2 ++
 hosts/arrakis/default.nix | 2 ++
 overlays/default.nix      | 8 ++++++++
 3 files changed, 12 insertions(+)

diff --git a/flake.nix b/flake.nix
index a88ed47..86be19a 100644
--- a/flake.nix
+++ b/flake.nix
@@ -26,6 +26,7 @@
 
     # per https://nixos-and-flakes.thiscute.world/nixos-with-flakes/downgrade-or-upgrade-packages
     #nixpkgs-67e692392.url = "github:nixos/nixpkgs/67e69239226f37168d1adb8d29bd61150756a03e";
+    nixpkgs-wine9_4.url = "github:nixos/nixpkgs/dea5930f0ed8c29d3758d5ade9898b4e99d80b74";
     nixpkgs-master.url = "github:nixos/nixpkgs";
     #nixpkgs-pr369712.url = "github:7c6f434c/nixpkgs/fix-tftp-hpa";
     nixpkgs-stable.url = "github:nixos/nixpkgs/release-24.05";
@@ -51,6 +52,7 @@
     nixpkgs-master,
     #nixpkgs-pr369712,
     nixpkgs-stable,
+    nixpkgs-wine9_4,
     nixpkgs,
     nvidia-patch,
     self,
diff --git a/hosts/arrakis/default.nix b/hosts/arrakis/default.nix
index 5265e52..0b7a1e2 100644
--- a/hosts/arrakis/default.nix
+++ b/hosts/arrakis/default.nix
@@ -104,6 +104,7 @@
     umoria
     vial
     warzone2100
+    wine9_4.wineWowPackages.stagingFull
     wpa_supplicant
     xonotic-sdl
     #xpilot-ng
@@ -225,6 +226,7 @@
       outputs.overlays.modifications
       outputs.overlays.master-packages
       outputs.overlays.stable-packages
+      outputs.overlays.wine9_4-packages
     ];
   };
 
diff --git a/overlays/default.nix b/overlays/default.nix
index 01287a5..b0d916e 100644
--- a/overlays/default.nix
+++ b/overlays/default.nix
@@ -8,6 +8,7 @@
 #   outputs.overlays.master-packages
 #   outputs.overlays.pr369712-packages
 #   outputs.overlays.stable-packages
+#   outputs.overlays.wine9_4-packages
 # ]
 
 {inputs, ...}: {
@@ -30,6 +31,13 @@
   #  };
   #};
 
+  "wine9_4-packages" = final: _prev: {
+    "wine9_4" = import inputs.nixpkgs-wine9_4 {
+      inherit (final) system;
+      config.allowUnfree = true;
+    };
+  };
+
   # When applied, the master nixpkgs set (declared in the flake inputs) will
   # be accessible through 'pkgs.master'
   master-packages = final: _prev: {
-- 
cgit v1.2.3