mirror of
https://codeberg.org/bunbun/bunbun.dev
synced 2025-01-22 12:44:29 -08:00
moved cmark into main flake
This commit is contained in:
parent
45a75fc3dc
commit
2bac7dadb5
22
cmark.nix
22
cmark.nix
@ -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";
|
|
||||||
};
|
|
||||||
}
|
|
24
flake.nix
24
flake.nix
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user