push sheeet
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s

This commit is contained in:
Dark Steveneq
2025-10-09 14:15:47 +02:00
commit 646b892680
49168 changed files with 5897842 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
diff --git a/src/modesel.c b/src/modesel.c
--- src/modesel.c
+++ src/modesel.c
@@ -6,6 +6,7 @@
*/
#include <stdio.h>
+#include <stdlib.h>
#include "zgv_io.h"
#include "readnbkey.h"
#include "modesel.h"

View File

@@ -0,0 +1,61 @@
{
lib,
stdenv,
fetchurl,
fetchpatch,
pkg-config,
SDL,
SDL_image,
libjpeg,
libpng,
libtiff,
}:
stdenv.mkDerivation rec {
pname = "zgv";
version = "5.9";
src = fetchurl {
url = "https://www.svgalib.org/rus/zgv/${pname}-${version}.tar.gz";
sha256 = "1fk4i9x0cpnpn3llam0zy2pkmhlr2hy3iaxhxg07v9sizd4dircj";
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [
SDL
SDL_image
libjpeg
libpng
libtiff
];
hardeningDisable = [ "format" ];
makeFlags = [
"BACKEND=SDL"
];
patches = [
./add-include.patch
(fetchpatch {
url = "https://foss.aueb.gr/mirrors/linux/gentoo/media-gfx/zgv/files/zgv-5.9-libpng15.patch";
sha256 = "1blw9n04c28bnwcmcn64si4f5zpg42s8yn345js88fyzi9zm19xw";
})
./switch.patch
];
patchFlags = [ "-p0" ];
installPhase = ''
mkdir -p $out/bin
cp src/zgv $out/bin
'';
meta = with lib; {
homepage = "http://www.svgalib.org/rus/zgv/";
description = "Picture viewer with a thumbnail-based selector";
license = licenses.gpl2;
maintainers = [ ];
platforms = platforms.linux;
mainProgram = "zgv";
};
}

View File

@@ -0,0 +1,14 @@
GCC complains
diff -ur src/zgv_io.c src/zgv_io.c
--- src/zgv_io.c 2005-01-20 15:07:46.000000000 -0800
+++ src/zgv_io.c 2016-06-29 10:19:40.169897611 -0700
@@ -645,7 +645,7 @@
case SDLK_INSERT: return(RK_INSERT);
case SDLK_DELETE: return(RK_DELETE);
case SDLK_RETURN: return(RK_ENTER);
- default:
+ default: ;
/* stop complaints */
}