moved cmark into main flake

This commit is contained in:
Winter 2024-07-25 17:43:17 -07:00
parent 45a75fc3dc
commit 2bac7dadb5
2 changed files with 16 additions and 30 deletions

View File

@ -1,22 +0,0 @@
{ buildLuarocksPackage, fetchFromGitHub, fetchurl }:
buildLuarocksPackage {
pname = "cmark";
version = "0.30.2-1";
knownRockspec = (fetchurl {
url = "mirror://luarocks/cmark-0.30.2-1.rockspec";
sha256 = "077kvl9xa9yj0fxyyxxw43k9v9dgd5f11ax8hhxj3nx8vfs5rps8";
}).outPath;
src = fetchFromGitHub {
owner = "jgm";
repo = "cmark-lua";
rev = "0.30.2";
hash = "sha256-6Bzq0FdyqXXiL6pLDRFbULFJpowF0P6CvAw8iqFXkkQ=";
};
meta = {
homepage = "https://github.com/jgm/cmark-lua";
description = "Lua wrapper for libcmark, CommonMark Markdown parsing\
and rendering library";
license.fullName = "BSD2";
};
}

View File

@ -11,14 +11,22 @@
devShells.x86_64-linux.default = pkgs.mkShell { devShells.x86_64-linux.default = pkgs.mkShell {
buildInputs = [ buildInputs = [
(pkgs.lua5_1.withPackages (ps: with ps; [ (pkgs.lua5_1.withPackages (ps: with ps; [
( ({ fetchFromGitHub, fetchurl }:
let ps.buildLuarocksPackage {
buildLuarocksPackage = ps.buildLuarocksPackage; pname = "cmark";
in version = "0.30.2-1";
pkgs.callPackage ./cmark.nix { knownRockspec = (fetchurl {
inherit buildLuarocksPackage; url = "mirror://luarocks/cmark-0.30.2-1.rockspec";
} sha256 = "077kvl9xa9yj0fxyyxxw43k9v9dgd5f11ax8hhxj3nx8vfs5rps8";
) }).outPath;
src = fetchFromGitHub {
owner = "jgm";
repo = "cmark-lua";
rev = "0.30.2";
hash = "sha256-6Bzq0FdyqXXiL6pLDRFbULFJpowF0P6CvAw8iqFXkkQ=";
};
})
luafilesystem luafilesystem
luasocket luasocket
luasec luasec