zig: 0.14.1 -> 0.15.1

make zig use the latest release 0.15.1 / zig_0_15 by default
Release Notes: https://ziglang.org/download/0.15.1/release-notes.html
Diff: https://github.com/ziglang/zig/compare/0.14.1...0.15.1

Pinned existing packages that were not already pinned to zig_0_14 i.e. the previous default if they failed to build with zig_0_15

Dropped `backlight-auto` as it requires the already dropped zig_0_12 (see the comment in the meta section)

Changed files
+14 -46
pkgs
by-name
ba
backlight-auto
fa
fancy-cat
nc
ri
river-bedload
development
compilers
top-level
-37
pkgs/by-name/ba/backlight-auto/package.nix
···
-
{
-
lib,
-
stdenv,
-
zig,
-
libyuv,
-
fetchFromGitHub,
-
}:
-
stdenv.mkDerivation (finalAttrs: {
-
pname = "backlight-auto";
-
version = "0.0.1";
-
-
src = fetchFromGitHub {
-
owner = "lf94";
-
repo = "backlight-auto";
-
rev = finalAttrs.version;
-
hash = "sha256-QPymwlDrgKM/SXDzJdmfzWLSLU2D7egif1OIUE+SHoI=";
-
};
-
-
nativeBuildInputs = [
-
zig.hook
-
];
-
-
buildInputs = [
-
libyuv
-
];
-
-
meta = with lib; {
-
# Does not support zig 0.12 or newer, hasn't been updated in 2 years.
-
broken = lib.versionAtLeast zig.version "0.12";
-
description = "Automatically set screen brightness with a webcam";
-
mainProgram = "backlight-auto";
-
homepage = "https://len.falken.directory/backlight-auto.html";
-
license = licenses.mit;
-
maintainers = [ ];
-
platforms = platforms.linux;
-
};
-
})
+3 -3
pkgs/by-name/fa/fancy-cat/package.nix
···
mupdf,
openjpeg,
stdenv,
-
zig,
+
zig_0_14,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "fancy-cat";
···
patches = [ ./0001-changes.patch ];
nativeBuildInputs = [
-
zig.hook
+
zig_0_14.hook
];
zigBuildFlags = [ "--release=fast" ];
···
license = lib.licenses.agpl3Plus;
maintainers = with lib.maintainers; [ ciflire ];
mainProgram = "fancy-cat";
-
inherit (zig.meta) platforms;
+
inherit (zig_0_14.meta) platforms;
};
})
+3 -3
pkgs/by-name/nc/ncdu/package.nix
···
fetchurl,
ncurses,
pkg-config,
-
zig_0_14,
+
zig_0_15,
zstd,
installShellFiles,
versionCheckHook,
···
};
nativeBuildInputs = [
-
zig_0_14.hook
+
zig_0_15.hook
installShellFiles
pkg-config
];
···
defelo
ryan4yin
];
-
inherit (zig_0_14.meta) platforms;
+
inherit (zig_0_15.meta) platforms;
mainProgram = "ncdu";
};
})
+2 -2
pkgs/by-name/ri/river-bedload/package.nix
···
wayland,
wayland-protocols,
wayland-scanner,
-
zig,
+
zig_0_14,
}:
stdenv.mkDerivation (finalAttrs: {
···
nativeBuildInputs = [
pkg-config
-
zig.hook
+
zig_0_14.hook
];
buildInputs = [
+4
pkgs/development/compilers/zig/generic.nix
···
teams = [ lib.teams.zig ];
mainProgram = "zig";
platforms = lib.platforms.unix;
+
# Zig 0.15.1 fails some tests on x86_64-darwin thus we mark it broken
+
# see https://github.com/ziglang/zig/issues/24974
+
broken =
+
stdenv.hostPlatform.system == "x86_64-darwin" && lib.versionAtLeast finalAttrs.version "0.15";
};
})
+1
pkgs/top-level/aliases.nix
···
### B ###
+
backlight-auto = throw "'backlight-auto' has been removed as it relies on Zig 0.12 which has been dropped."; # Added 2025-08-22
badtouch = authoscope; # Project was renamed, added 20210626
badwolf = throw "'badwolf' has been removed due to being unmaintained"; # Added 2025-04-15
baget = throw "'baget' has been removed due to being unmaintained";
+1 -1
pkgs/top-level/all-packages.nix
···
zig_0_15
-
zig = zig_0_14;
+
zig = zig_0_15;
zigStdenv = if stdenv.cc.isZig then stdenv else lowPrio zig.passthru.stdenv;