Skip to content

Commit

Permalink
Update cmark source code so we can parser into an existing AST
Browse files Browse the repository at this point in the history
Needed until commonmark/cmark#524 is released.

• Added input 'cmark':
    'github:commonmark/cmark/cd37711b8a08da67ba4e21a42614b86dd8def929' (2024-01-26)
  • Loading branch information
Ericson2314 committed Jan 27, 2024
1 parent d52f2c5 commit 2c5b2b1
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
17 changes: 17 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 9 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@
inputs.nixpkgs-regression.url = "github:NixOS/nixpkgs/215d4d0fd80ca5163643b03a33fde804a29cc1e2";
inputs.flake-compat = { url = "github:edolstra/flake-compat"; flake = false; };
inputs.libgit2 = { url = "github:libgit2/libgit2"; flake = false; };
# Until https://github.com/commonmark/cmark/pull/524 is released
inputs.cmark = { url = "github:commonmark/cmark"; flake = false; };

outputs = { self, nixpkgs, nixpkgs-regression, libgit2, ... }:
outputs = { self, nixpkgs, nixpkgs-regression, libgit2, cmark, ... }:

let
inherit (nixpkgs) lib;
Expand Down Expand Up @@ -152,6 +154,11 @@
'';
};

cmark-nix = final.cmark.overrideAttrs (_: {
src = cmark;
version = cmark.lastModifiedDate;
});

libgit2-nix = final.libgit2.overrideAttrs (attrs: {
src = libgit2;
version = libgit2.lastModifiedDate;
Expand Down Expand Up @@ -188,6 +195,7 @@
;
officialRelease = false;
boehmgc = final.boehmgc-nix;
cmark = final.cmark-nix;
libgit2 = final.libgit2-nix;
busybox-sandbox-shell = final.busybox-sandbox-shell or final.default-busybox-sandbox-shell;
changelog-d = final.changelog-d-nix;
Expand Down

0 comments on commit 2c5b2b1

Please sign in to comment.