depot/third_party/nixpkgs/pkgs/development/tools/database/mermerd/default.nix
Default email 5e9e1146e1 Project import generated by Copybara.
GitOrigin-RevId: 18036c0be90f4e308ae3ebcab0e14aae0336fe42
2023-08-05 00:07:22 +02:00

45 lines
998 B
Nix

{ lib
, buildGoModule
, fetchFromGitHub
, testers
, mermerd
}:
buildGoModule rec {
pname = "mermerd";
version = "0.8.1";
src = fetchFromGitHub {
owner = "KarnerTh";
repo = "mermerd";
rev = "refs/tags/v${version}";
hash = "sha256-L/ieDhducOpdJ0vu578YcjSLTARlih81xAyly4pVE80=";
};
vendorHash = "sha256-RSCpkQymvUvY2bOkjhsyKnDa3vezUjC33Nwv0+O4OOQ=";
ldflags = [
"-s"
"-w"
"-X=main.version=${version}"
"-X=main.commit=${src.rev}"
];
# the tests expect a database to be running
doCheck = false;
passthru.tests = {
version = testers.testVersion {
package = mermerd;
command = "mermerd version";
};
};
meta = with lib; {
description = "Create Mermaid-Js ERD diagrams from existing tables";
homepage = "https://github.com/KarnerTh/mermerd";
changelog = "https://github.com/KarnerTh/mermerd/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ austin-artificial ];
};
}