acr-cli: init at 0.14 (#359508)
[NixPkgs.git] / pkgs / by-name / mm / mmark / package.nix
blobab371104dc8689e5740da081f7298f82dcded53d
1 { lib, buildGoModule, fetchFromGitHub, testers, mmark }:
3 buildGoModule rec {
4   pname = "mmark";
5   version = "2.2.32";
7   src = fetchFromGitHub {
8     owner = "mmarkdown";
9     repo = "mmark";
10     # The tag has an outdated version number and fails the versio ntest
11     # The pinned revision includes one extra commit that fixes the issue
12     # rev = "v${version}";
13     rev = "158e9cca0280c58e205cb69b02bf33d7d826915e";
14     hash = "sha256-OzmqtmAAsG3ncrTl2o9rhK75i1WIpDnph0YrY38SlU0=";
15   };
17   vendorHash = "sha256-GjR9cOGLB6URHQi+qcyNbP7rm0+y4wypvgUxgJzIgGQ=";
19   ldflags = [ "-s" "-w" ];
21   passthru.tests.version = testers.testVersion {
22     package = mmark;
23   };
25   meta = {
26     description = "Powerful markdown processor in Go geared towards the IETF";
27     homepage = "https://github.com/mmarkdown/mmark";
28     license = with lib.licenses; bsd2;
29     maintainers = with lib.maintainers; [ yrashk ];
30     mainProgram = "mmark";
31   };