1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/libraries/cmark/default.nix
volth 46420bbaa3 treewide: name -> pname (easy cases) (#66585)
treewide replacement of

stdenv.mkDerivation rec {
  name = "*-${version}";
  version = "*";

to pname
2019-08-15 13:41:18 +01:00

28 lines
661 B
Nix

{ stdenv, fetchFromGitHub, cmake }:
stdenv.mkDerivation rec {
version = "0.29.0";
pname = "cmark";
src = fetchFromGitHub {
owner = "jgm";
repo = "cmark";
rev = version;
sha256 = "0r7jpqhgnssq444i8pwji2g36058vfzwkl70wbiwj13h4w5rfc8f";
};
nativeBuildInputs = [ cmake ];
doCheck = !stdenv.isDarwin;
preCheck = ''
export LD_LIBRARY_PATH=$(readlink -f ./src)
'';
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;
license = licenses.bsd2;
};
}