Merge pull request #140511 from smancill/bump-cmark

This commit is contained in:
Sandro 2021-11-16 18:38:51 +01:00 committed by GitHub
commit bcf9d4ec55
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,29 +1,20 @@
{ lib, stdenv, fetchFromGitHub, fetchpatch, cmake }: { lib, stdenv, fetchFromGitHub, cmake }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "cmark"; pname = "cmark";
version = "0.30.1"; version = "0.30.2";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "jgm"; owner = "jgm";
repo = pname; repo = pname;
rev = version; rev = version;
sha256 = "sha256-UjDM2N6gCwO94F1nW3qCP9JX42MYAicAuGTKAXMy1Gg="; sha256 = "sha256-IkNybUe/XYwAvPowym3aqfVyvNdw2t/brRjhOrjVRpA=";
}; };
patches = [
# Fix libcmark.pc paths (should be incorporated next release)
(fetchpatch {
url = "https://github.com/commonmark/cmark/commit/15762d7d391483859c241cdf82b1615c6b6a5a19.patch";
sha256 = "sha256-wdyK1tQolgfiwYMAaWMQZdCSbMDCijug5ykpoDl/HwI=";
})
];
nativeBuildInputs = [ cmake ]; nativeBuildInputs = [ cmake ];
cmakeFlags = [ cmakeFlags = [
# https://github.com/commonmark/cmark/releases/tag/0.30.1 # Link the executable with the shared library
# recommends distributions dynamically link
"-DCMARK_STATIC=OFF" "-DCMARK_STATIC=OFF"
]; ];