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 Mar 25, 2024
1 parent 75c4652 commit b894bc5
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 @@ -7,8 +7,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 @@ -143,6 +145,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 @@ -179,6 +186,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;
} // {
Expand Down

0 comments on commit b894bc5

Please sign in to comment.