nix: update nixpkgs, remove zig.hook, and remove x11-gnome

As of NixOS/nixpkgs#473413[1], `zig.hook` no longer supports
`zig_default_flags`, and now they can and must be provided in
`zigBuildFlags` instead.

Updating also requires removing gnome-xorg since it has been removed
from nixpkgs.

[1] https://github.com/NixOS/nixpkgs/pull/473413
pull/10286/head
MithicSpirit 2026-01-11 17:37:57 -05:00
parent 24880becb7
commit 5c8c7c627c
No known key found for this signature in database
GPG Key ID: 0EA043551EBD3C2E
6 changed files with 15 additions and 32 deletions

View File

@ -41,27 +41,26 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1755776884, "lastModified": 1768068402,
"narHash": "sha256-CPM7zm6csUx7vSfKvzMDIjepEJv1u/usmaT7zydzbuI=", "narHash": "sha256-bAXnnJZKJiF7Xr6eNW6+PhBf1lg2P1aFUO9+xgWkXfA=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "4fb695d10890e9fc6a19deadf85ff79ffb78da86", "rev": "8bc5473b6bc2b6e1529a9c4040411e1199c43b4c",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "nix-community", "owner": "nix-community",
"ref": "release-25.05",
"repo": "home-manager", "repo": "home-manager",
"type": "github" "type": "github"
} }
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1763191728, "lastModified": 1768032153,
"narHash": "sha256-gI9PpaoX4/f28HkjcTbFVpFhtOxSDtOEdFaHZrdETe0=", "narHash": "sha256-zvxtwlM8ZlulmZKyYCQAPpkm5dngSEnnHjmjV7Teloc=",
"rev": "1d4c88323ac36805d09657d13a5273aea1b34f0c", "rev": "3146c6aa9995e7351a398e17470e15305e6e18ff",
"type": "tarball", "type": "tarball",
"url": "https://releases.nixos.org/nixpkgs/nixpkgs-25.11pre896415.1d4c88323ac3/nixexprs.tar.xz" "url": "https://releases.nixos.org/nixpkgs/nixpkgs-26.05pre925418.3146c6aa9995/nixexprs.tar.xz"
}, },
"original": { "original": {
"type": "tarball", "type": "tarball",

View File

@ -35,7 +35,7 @@
}; };
home-manager = { home-manager = {
url = "github:nix-community/home-manager?ref=release-25.05"; url = "github:nix-community/home-manager";
inputs = { inputs = {
nixpkgs.follows = "nixpkgs"; nixpkgs.follows = "nixpkgs";
}; };
@ -117,7 +117,6 @@
wayland-gnome = runVM ./nix/vm/wayland-gnome.nix; wayland-gnome = runVM ./nix/vm/wayland-gnome.nix;
wayland-plasma6 = runVM ./nix/vm/wayland-plasma6.nix; wayland-plasma6 = runVM ./nix/vm/wayland-plasma6.nix;
x11-cinnamon = runVM ./nix/vm/x11-cinnamon.nix; x11-cinnamon = runVM ./nix/vm/x11-cinnamon.nix;
x11-gnome = runVM ./nix/vm/x11-gnome.nix;
x11-plasma6 = runVM ./nix/vm/x11-plasma6.nix; x11-plasma6 = runVM ./nix/vm/x11-plasma6.nix;
x11-xfce = runVM ./nix/vm/x11-xfce.nix; x11-xfce = runVM ./nix/vm/x11-xfce.nix;
}; };

View File

@ -20,16 +20,6 @@
wayland-scanner, wayland-scanner,
pkgs, pkgs,
}: let }: let
# The Zig hook has no way to select the release type without actual
# overriding of the default flags.
#
# TODO: Once
# https://github.com/ziglang/zig/issues/14281#issuecomment-1624220653 is
# ultimately acted on and has made its way to a nixpkgs implementation, this
# can probably be removed in favor of that.
zig_hook = zig_0_15.hook.overrideAttrs {
zig_default_flags = "-Dcpu=baseline -Doptimize=${optimize} --color off";
};
gi_typelib_path = import ./build-support/gi-typelib-path.nix { gi_typelib_path = import ./build-support/gi-typelib-path.nix {
inherit pkgs lib stdenv; inherit pkgs lib stdenv;
}; };
@ -73,7 +63,7 @@ in
ncurses ncurses
pandoc pandoc
pkg-config pkg-config
zig_hook zig_0_15
gobject-introspection gobject-introspection
wrapGAppsHook4 wrapGAppsHook4
blueprint-compiler blueprint-compiler
@ -92,12 +82,16 @@ in
GI_TYPELIB_PATH = gi_typelib_path; GI_TYPELIB_PATH = gi_typelib_path;
dontSetZigDefaultFlags = true;
zigBuildFlags = [ zigBuildFlags = [
"--system" "--system"
"${finalAttrs.deps}" "${finalAttrs.deps}"
"-Dversion-string=${finalAttrs.version}-${revision}-nix" "-Dversion-string=${finalAttrs.version}-${revision}-nix"
"-Dgtk-x11=${lib.boolToString enableX11}" "-Dgtk-x11=${lib.boolToString enableX11}"
"-Dgtk-wayland=${lib.boolToString enableWayland}" "-Dgtk-wayland=${lib.boolToString enableWayland}"
"-Dcpu=baseline"
"-Doptimize=${optimize}"
"-Dstrip=${lib.boolToString strip}" "-Dstrip=${lib.boolToString strip}"
]; ];

View File

@ -274,7 +274,7 @@ in {
client.succeed("${su "${ghostty} +new-window"}") client.succeed("${su "${ghostty} +new-window"}")
client.wait_until_succeeds("${wm_class} | grep -q 'com.mitchellh.ghostty-debug'") client.wait_until_succeeds("${wm_class} | grep -q 'com.mitchellh.ghostty-debug'")
with subtest("SSH from client to server and verify that the Ghostty terminfo is copied.") with subtest("SSH from client to server and verify that the Ghostty terminfo is copied."):
client.sleep(2) client.sleep(2)
client.send_chars("ssh ghostty@server\n") client.send_chars("ssh ghostty@server\n")
server.wait_for_file("${user.home}/.terminfo/x/xterm-ghostty", timeout=30) server.wait_for_file("${user.home}/.terminfo/x/xterm-ghostty", timeout=30)

View File

@ -8,7 +8,7 @@
./common.nix ./common.nix
]; ];
services.xserver = { services = {
displayManager = { displayManager = {
gdm = { gdm = {
enable = true; enable = true;

View File

@ -1,9 +0,0 @@
{...}: {
imports = [
./common-gnome.nix
];
services.displayManager = {
defaultSession = "gnome-xorg";
};
}