nixpkgs/pkgs/development/tools/database/mermerd/default.nix

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

46 lines
998 B
Nix
Raw Normal View History

2023-05-16 02:02:20 +00:00
{ lib
, buildGoModule
2023-03-13 09:46:45 +00:00
, fetchFromGitHub
2023-05-16 02:04:03 +00:00
, testers
, mermerd
2023-03-13 09:46:45 +00:00
}:
buildGoModule rec {
pname = "mermerd";
2023-08-18 12:40:52 +00:00
version = "0.9.0";
2023-03-13 09:46:45 +00:00
src = fetchFromGitHub {
owner = "KarnerTh";
repo = "mermerd";
rev = "refs/tags/v${version}";
2023-08-18 12:40:52 +00:00
hash = "sha256-oYX1473bfZHwCscIpZSDfkKgIsGMcmkFGfWI400Maao=";
2023-03-13 09:46:45 +00:00
};
vendorHash = "sha256-RSCpkQymvUvY2bOkjhsyKnDa3vezUjC33Nwv0+O4OOQ=";
2023-05-16 02:02:20 +00:00
ldflags = [
"-s"
"-w"
"-X=main.version=${version}"
"-X=main.commit=${src.rev}"
];
2023-03-13 09:46:45 +00:00
# the tests expect a database to be running
doCheck = false;
2023-05-16 02:04:03 +00:00
passthru.tests = {
version = testers.testVersion {
package = mermerd;
command = "mermerd version";
};
};
2023-03-13 09:46:45 +00:00
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}";
2023-05-16 02:02:20 +00:00
license = licenses.mit;
maintainers = with maintainers; [ austin-artificial ];
2023-03-13 09:46:45 +00:00
};
}