zgv: fix build with gcc15; migrate to by-name

This commit is contained in:
Xiangyan Sun
2026-04-18 11:35:05 -07:00
parent f97e195236
commit 12e3dde80d
4 changed files with 13 additions and 11 deletions
@@ -4,13 +4,20 @@
fetchurl,
fetchpatch,
pkg-config,
SDL,
SDL_sixel,
SDL_image,
libjpeg,
libpng,
libtiff,
}:
let
# Enable terminal display. Note that it requires sixel graphics compatible
# terminals like mlterm or xterm -ti 340
SDL_image_sixel = SDL_image.override {
SDL = SDL_sixel;
};
in
stdenv.mkDerivation (finalAttrs: {
pname = "zgv";
version = "5.9";
@@ -21,8 +28,8 @@ stdenv.mkDerivation (finalAttrs: {
nativeBuildInputs = [ pkg-config ];
buildInputs = [
SDL
SDL_image
SDL_sixel
SDL_image_sixel
libjpeg
libpng
libtiff
@@ -30,6 +37,9 @@ stdenv.mkDerivation (finalAttrs: {
hardeningDisable = [ "format" ];
# gcc15
env.NIX_CFLAGS_COMPILE = "-std=gnu17";
makeFlags = [
"BACKEND=SDL"
];
-8
View File
@@ -11026,14 +11026,6 @@ with pkgs;
zed-editor-fhs = zed-editor.fhs;
zgv = callPackage ../applications/graphics/zgv {
# Enable the below line for terminal display. Note
# that it requires sixel graphics compatible terminals like mlterm
# or xterm -ti 340
SDL = SDL_sixel;
SDL_image = SDL_image.override { SDL = SDL_sixel; };
};
zynaddsubfx-fltk = zynaddsubfx.override {
guiModule = "fltk";
};