{ lib, buildGoModule, fetchFromGitHub, }: # Tests with go 1.24 do not work. For now # https://github.com/kovetskiy/mark/pull/581#issuecomment-2797872996 buildGoModule rec { pname = "mark"; version = "14.1.1"; src = fetchFromGitHub { owner = "kovetskiy"; repo = "mark"; rev = "${version}"; sha256 = "sha256-jKc5QugqfdjSQjK7SbLG02a9+YdFcweS+91LhdR0Dzg="; }; vendorHash = "sha256-AHtIVp2n5v4YoYfWAsE7eD1QcEFKdjSqzGIlR7+mnxg="; ldflags = [ "-s" "-w" "-X main.version=${version}" ]; checkFlags = let skippedTests = [ # Expects to be able to launch google-chrome "TestExtractMermaidImage" "TestExtractD2Image/example" ]; in [ "-skip=^${builtins.concatStringsSep "$|^" skippedTests}$" ]; meta = with lib; { description = "Tool for syncing your markdown documentation with Atlassian Confluence pages"; mainProgram = "mark"; homepage = "https://github.com/kovetskiy/mark"; license = licenses.asl20; maintainers = with maintainers; [ rguevara84 wrbbz ]; }; }