depot/third_party/nixpkgs/pkgs/by-name/re/regex2json/package.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

26 lines
721 B
Nix

{ lib, buildGoModule, fetchFromGitLab }:
buildGoModule rec {
pname = "regex2json";
version = "0.11.0";
src = fetchFromGitLab {
owner = "tozd";
repo = "regex2json";
rev = "v${version}";
hash = "sha256-WoxrwAH2ocDuwRj52QHPN3sOMXIF3ygzKeb83BKZqKo=";
};
vendorHash = "sha256-myMUs9urHjYaOQ/UaPYlLZstvClOuvF5xJao4lTP5bY=";
ldflags = [ "-s" "-w" ];
meta = {
description = "Convert text to JSON using only regular expressions";
homepage = "https://gitlab.com/tozd/regex2json";
changelog = "https://gitlab.com/tozd/regex2json/-/blob/${src.rev}/CHANGELOG.md";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ nagy ];
mainProgram = "regex2json";
};
}