mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-06 04:53:27 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
33 lines
932 B
Nix
33 lines
932 B
Nix
{ lib, buildGoModule, fetchFromGitHub, testers, mmark }:
|
|
|
|
buildGoModule rec {
|
|
pname = "mmark";
|
|
version = "2.2.32";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mmarkdown";
|
|
repo = "mmark";
|
|
# The tag has an outdated version number and fails the versio ntest
|
|
# The pinned revision includes one extra commit that fixes the issue
|
|
# rev = "v${version}";
|
|
rev = "158e9cca0280c58e205cb69b02bf33d7d826915e";
|
|
hash = "sha256-OzmqtmAAsG3ncrTl2o9rhK75i1WIpDnph0YrY38SlU0=";
|
|
};
|
|
|
|
vendorHash = "sha256-GjR9cOGLB6URHQi+qcyNbP7rm0+y4wypvgUxgJzIgGQ=";
|
|
|
|
ldflags = [ "-s" "-w" ];
|
|
|
|
passthru.tests.version = testers.testVersion {
|
|
package = mmark;
|
|
};
|
|
|
|
meta = {
|
|
description = "Powerful markdown processor in Go geared towards the IETF";
|
|
homepage = "https://github.com/mmarkdown/mmark";
|
|
license = with lib.licenses; bsd2;
|
|
maintainers = with lib.maintainers; [ yrashk ];
|
|
mainProgram = "mmark";
|
|
};
|
|
}
|