summaryrefslogtreecommitdiffstats
path: root/pkgs/by-name/mo/modest/package.nix
blob: 600524d3ec0ae740064ed78e89d1d0721b6f47e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{
  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 (
    lib.optionals stdenv.hostPlatform.isDarwin [
      "-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;
  };
})