diff --git a/flake.lock b/flake.lock index f0efb4036ef..03e87f826e5 100644 --- a/flake.lock +++ b/flake.lock @@ -1,5 +1,21 @@ { "nodes": { + "cmark": { + "flake": false, + "locked": { + "lastModified": 1706295831, + "narHash": "sha256-nEI85W8w49ZVr17ycO+7aZvcgA3U2QphNZGrfQl2mSk=", + "owner": "commonmark", + "repo": "cmark", + "rev": "cd37711b8a08da67ba4e21a42614b86dd8def929", + "type": "github" + }, + "original": { + "owner": "commonmark", + "repo": "cmark", + "type": "github" + } + }, "flake-compat": { "flake": false, "locked": { @@ -66,6 +82,7 @@ }, "root": { "inputs": { + "cmark": "cmark", "flake-compat": "flake-compat", "libgit2": "libgit2", "nixpkgs": "nixpkgs", diff --git a/flake.nix b/flake.nix index 5179886c157..f22cdc28360 100644 --- a/flake.nix +++ b/flake.nix @@ -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; @@ -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; @@ -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;