1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-17 19:21:04 +00:00
nixpkgs/pkgs/tools/text/vale/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

36 lines
842 B
Nix
Raw Normal View History

2021-01-20 04:20:00 +00:00
{ lib, buildGoModule, fetchFromGitHub }:
2018-03-10 22:28:02 +00:00
buildGoModule rec {
2019-08-20 13:54:18 +01:00
pname = "vale";
version = "2.28.0";
2018-03-10 22:28:02 +00:00
2021-01-20 04:20:00 +00:00
subPackages = [ "cmd/vale" ];
outputs = [ "out" "data" ];
2019-02-24 01:25:21 +00:00
2018-03-10 22:28:02 +00:00
src = fetchFromGitHub {
2021-10-16 07:56:04 +01:00
owner = "errata-ai";
repo = "vale";
rev = "v${version}";
hash = "sha256-AalZFc2GGIA7CV3+OGEmNZEQk0OUsbfQDq8d3Z708XU=";
2018-03-10 22:28:02 +00:00
};
vendorHash = "sha256-KB1mRWDYejc38tUv316MiGfmq2riNnpEMIUpjgfSasU=";
postInstall = ''
mkdir -p $data/share/vale
cp -r testdata/styles $data/share/vale
'';
2019-08-20 13:54:18 +01:00
2021-08-26 07:45:51 +01:00
ldflags = [ "-s" "-w" "-X main.version=${version}" ];
# Tests require network access
doCheck = false;
meta = with lib; {
homepage = "https://vale.sh/";
2019-01-18 12:05:24 +00:00
description = "A syntax-aware linter for prose built with speed and extensibility in mind";
2018-03-10 22:28:02 +00:00
license = licenses.mit;
maintainers = [ maintainers.marsam ];
};
}