Unverified Commit 261be471 authored by Mario Rodas's avatar Mario Rodas Committed by GitHub
Browse files

Merge pull request #225665 from r-ryantm/auto-update/cmark-gfm

cmark-gfm: 0.29.0.gfm.10 -> 0.29.0.gfm.11
parents d9b7d64f f828f3e0
Loading
Loading
Loading
Loading
+3 −8
Original line number Diff line number Diff line
{ lib, stdenv, fetchFromGitHub, cmake }:
stdenv.mkDerivation rec {
  pname = "cmark-gfm";
  version = "0.29.0.gfm.10";
  version = "0.29.0.gfm.11";

  src = fetchFromGitHub {
    owner = "github";
    repo = "cmark-gfm";
    rev = version;
    sha256 = "sha256-8TGwxZB/sT+VmQ0eIwK8rHJrCZXvpG69t+HA3aFz5h8=";
    sha256 = "sha256-2jkMJcfcOH5qYP13qS5Hutbyhhzq9WlqlkthmQoJoCM=";
  };

  nativeBuildInputs = [ cmake ];

  doCheck = true;

  # remove when https://github.com/github/cmark-gfm/pull/248 merged and released
  postInstall = ''
    substituteInPlace $out/include/cmark-gfm-core-extensions.h \
    --replace '#include "config.h"' '#include <stdbool.h>'
  '';

  meta = with lib; {
    description = "GitHub's fork of cmark, a CommonMark parsing and rendering library and program in C";
    homepage = "https://github.com/github/cmark-gfm";
    changelog = "https://github.com/github/cmark-gfm/raw/${version}/changelog.txt";
    maintainers = with maintainers; [ cyplo ];
    platforms = platforms.unix;
    license = licenses.bsd2;