~aasg/nixexprs

e5e38cdd91b2aff33c12288e0eb7c60c478ebdcd — Aluísio Augusto Silva Gonçalves 7 months ago f1a9022
guile-commonmark: init at 0.1.2
2 files changed, 41 insertions(+), 0 deletions(-)

A pkgs/development/guile-modules/guile-commonmark/default.nix
M pkgs/overlay.nix
A pkgs/development/guile-modules/guile-commonmark/default.nix => pkgs/development/guile-modules/guile-commonmark/default.nix +37 -0
@@ 0,0 1,37 @@
{ stdenv, lib, fetchFromGitHub, autoreconfHook, pkgconfig, guile }:

stdenv.mkDerivation rec {
  pname = "guile-commonmark";
  version = "0.1.2";

  src = fetchFromGitHub {
    owner = "OrangeShark";
    repo = "guile-commonmark";
    rev = "v${version}";
    sha256 = "1jn4idjlksq2vl4fgxgicgzz3hrcpdyr67v7jqyfaa4v4cidr059";
  };

  nativeBuildInputs = [ autoreconfHook pkgconfig ];
  buildInputs = [ guile ];

  makeFlags = [
    "moddir=$(out)/share/guile/site"
    "godir=$(out)/share/guile/site/site-ccache"
  ];

  meta = with lib; {
    description = "CommonMark parser for Guile";
    longDescription = ''
      guile-commonmark is a library for parsing CommonMark, a fully
      specified variant of Markdown.  The library is written in Guile
      Scheme and is designed to transform a CommonMark document to
      SXML.  guile-commonmark tries to closely follow the CommonMark
      spec, the main difference is no support for parsing block and
      inline level HTML.
    '';
    homepage = "https://github.com/OrangeShark/guile-commonmark";
    license = licenses.lgpl3Plus;
    maintainers = with maintainers; [ AluisioASG ];
    platforms = platforms.gnu;
  };
}

M pkgs/overlay.nix => pkgs/overlay.nix +4 -0
@@ 6,6 6,10 @@ self: super:

  dyndnsc = super.callPackage ./tools/networking/dyndnsc { inherit (self) python3Packages; };

  guile-commonmark = super.callPackage ./development/guile-modules/guile-commonmark {
    inherit (self) pkgconfig guile;
  };

  linuxPackagesFor = kernel:
    (super.linuxPackagesFor kernel).extend (import ./os-specific/linux/kernel-packages.nix);