nixpkgs/pkgs/development/libraries/cmark/default.nix
R. RyanTM f406a0475d cmark: 0.27.1 -> 0.28.3
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
2018-04-07 17:52:51 -07:00

27 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;
};
}