mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-05 20:12:52 +00:00
f406a0475d
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/cmark/versions. These checks were done: - built on NixOS - ran ‘/nix/store/ws8c9r62c7wsas7kj1v0svfs57d53dvv-cmark-0.28.3/bin/cmark -h’ got 0 exit code - ran ‘/nix/store/ws8c9r62c7wsas7kj1v0svfs57d53dvv-cmark-0.28.3/bin/cmark --help’ got 0 exit code - found 0.28.3 with grep in /nix/store/ws8c9r62c7wsas7kj1v0svfs57d53dvv-cmark-0.28.3 - directory tree listing: https://gist.github.com/890d356ed9766b2fca77baebee346a0e
28 lines
684 B
Nix
28 lines
684 B
Nix
{ stdenv, fetchFromGitHub, cmake }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "0.28.3";
|
|
name = "cmark-${version}";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jgm";
|
|
repo = "cmark";
|
|
rev = version;
|
|
sha256 = "1lal6n6q7l84njgdcq1xbfxan56qlvr8xaw9m2jbd0jk4y2wkczg";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
doCheck = !stdenv.isDarwin;
|
|
checkPhase = ''
|
|
export LD_LIBRARY_PATH=$(readlink -f ./src)
|
|
CTEST_OUTPUT_ON_FAILURE=1 make test
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "CommonMark parsing and rendering library and program in C";
|
|
homepage = https://github.com/jgm/cmark;
|
|
maintainers = [ maintainers.michelk ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|