Files
nixpkgs/pkgs/by-name/mo/modest/package.nix
whispers 2c4ed6d542 modest: fix build with gcc 16
failing due to unused variables and the better analysis provided in gcc
16. upstream seems very dead and unused variables *definitely* do not
seem worth patching, so let's just unconditionalize the existing
directives.
2026-09-24 19:47:43 -04:00

36 lines
792 B
Nix

{
lib,
stdenv,
fetchFromGitHub,
cmake,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "modest";
version = "0-unstable-2021-08-03";
src = fetchFromGitHub {
owner = "lexborisov";
repo = "modest";
rev = "2540a03259fc62fe15f47e85c20b2eedd5af66de";
hash = "sha256-o3asVErtc9CYRb3ZZFE5DYyT/Pjr7TZ79BLPnh6CCT0=";
};
nativeBuildInputs = [
cmake
];
env.NIX_CFLAGS_COMPILE = toString [
"-Wno-void-pointer-to-enum-cast"
"-Wno-unused-but-set-variable"
];
meta = {
description = "Fast HTML renderer implemented as a pure C99 library with no outside dependencies";
homepage = "https://github.com/lexborisov/Modest";
license = lib.licenses.lgpl21;
maintainers = [ lib.maintainers.drupol ];
platforms = lib.platforms.all;
};
})