nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 cmake,
6}:
7
8stdenv.mkDerivation (finalAttrs: {
9 pname = "modest";
10 version = "0-unstable-2021-08-03";
11
12 src = fetchFromGitHub {
13 owner = "lexborisov";
14 repo = "modest";
15 rev = "2540a03259fc62fe15f47e85c20b2eedd5af66de";
16 hash = "sha256-o3asVErtc9CYRb3ZZFE5DYyT/Pjr7TZ79BLPnh6CCT0=";
17 };
18
19 nativeBuildInputs = [
20 cmake
21 ];
22
23 env.NIX_CFLAGS_COMPILE = toString (
24 lib.optionals stdenv.hostPlatform.isDarwin [
25 "-Wno-void-pointer-to-enum-cast"
26 "-Wno-unused-but-set-variable"
27 ]
28 );
29
30 meta = {
31 description = "Fast HTML renderer implemented as a pure C99 library with no outside dependencies";
32 homepage = "https://github.com/lexborisov/Modest";
33 license = lib.licenses.lgpl21;
34 maintainers = [ lib.maintainers.drupol ];
35 platforms = lib.platforms.all;
36 };
37})