cripslock

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

default.nix (830B)


      1 { buildLuarocksPackage, cmark, fetchFromGitHub, fetchurl, lpeg, luaOlder, optparse }:
      2 buildLuarocksPackage {
      3   pname = "lcmark";
      4   version = "0.31.1-1";
      5   knownRockspec = (fetchurl {
      6     url    = "mirror://luarocks/lcmark-0.31.1-1.rockspec";
      7     sha256 = "0k1d1cqnj19p35qfaiascxllmv1x6i1sywrcyjv6fb150yym2f8m";
      8   }).outPath;
      9   src = fetchFromGitHub {
     10     owner = "jgm";
     11     repo = "lcmark";
     12     rev = "0.31.1-1";
     13     hash = "sha256-Ii4NZ98f8LQGT5jHXepckymIB1ieQJD3I063OraTiK8=";
     14   };
     15 
     16   disabled = luaOlder "5.1";
     17   buildInputs = [ cmark lpeg  ];
     18   propagatedBuildInputs = [ cmark lpeg optparse ];
     19 
     20   meta = {
     21     homepage = "https://github.com/jgm/lcmark";
     22     description = "A command-line CommonMark converter with flexible\
     23       features, and a lua module that exposes these features.";
     24     license.fullName = "BSD2";
     25   };
     26 }