nixpkgs/pkgs/tools/text/mark/default.nix
2024-08-13 02:49:10 +00:00

36 lines
909 B
Nix

{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "mark";
version = "10.0.1";
src = fetchFromGitHub {
owner = "kovetskiy";
repo = "mark";
rev = version;
sha256 = "sha256-i1luJsAADk7VqrZAqnI52XGrbWeNLBMnzW0wxEO5LXQ=";
};
vendorHash = "sha256-g8KN8M1jB4lTjXNfTw6gnjTCN4HDBTqtNS6c+5tJQv4=";
ldflags = [ "-s" "-w" "-X main.version=${version}" ];
checkFlags =
let
skippedTests = [
# Expects to be able to launch google-chrome
"TestExtractMermaidImage"
];
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 ];
};
}