mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-21 19:44:09 +00:00

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.
36 lines
909 B
Nix
36 lines
909 B
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "mark";
|
|
version = "11.2.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "kovetskiy";
|
|
repo = "mark";
|
|
rev = version;
|
|
sha256 = "sha256-Pwt8HhbO+1wmEGYRny1W5HzKRWmvTneqN4fuAaKcYaA=";
|
|
};
|
|
|
|
vendorHash = "sha256-uokBuQquSkdbHsI3hZ7/FxE93/QOZ6jD2zB8vDPeESI=";
|
|
|
|
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 ];
|
|
};
|
|
}
|