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
39 lines
960 B
Nix
39 lines
960 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
cmake,
|
|
}:
|
|
stdenv.mkDerivation rec {
|
|
pname = "cmark-gfm";
|
|
version = "0.29.0.gfm.13";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "github";
|
|
repo = "cmark-gfm";
|
|
rev = version;
|
|
sha256 = "sha256-HiSGtRsSbW03R6aKoMVVFOLrwP5aXtpeXUC/bE5M/qo=";
|
|
};
|
|
|
|
# Fix the build with CMake 4.
|
|
postPatch = ''
|
|
substituteInPlace CMakeLists.txt --replace-fail \
|
|
"cmake_minimum_required(VERSION 3.0)" \
|
|
"cmake_minimum_required(VERSION 3.13)"
|
|
'';
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
doCheck = true;
|
|
|
|
meta = {
|
|
description = "GitHub's fork of cmark, a CommonMark parsing and rendering library and program in C";
|
|
mainProgram = "cmark-gfm";
|
|
homepage = "https://github.com/github/cmark-gfm";
|
|
changelog = "https://github.com/github/cmark-gfm/raw/${version}/changelog.txt";
|
|
maintainers = with lib.maintainers; [ cyplo ];
|
|
platforms = lib.platforms.unix;
|
|
license = lib.licenses.bsd2;
|
|
};
|
|
}
|