Commit b03f1cef authored by figsoda's avatar figsoda
Browse files

mermerd: fix version command

parent c985c39b
Loading
Loading
Loading
Loading
+11 −5
Original line number Diff line number Diff line
{ buildGoModule
{ lib
, buildGoModule
, fetchFromGitHub
, lib
}:

buildGoModule rec {
@@ -16,15 +16,21 @@ buildGoModule rec {

  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;

  meta = with lib; {
    description = "Create Mermaid-Js ERD diagrams from existing tables";
    homepage = "https://github.com/KarnerTh/mermerd";
    license = licenses.mit;
    maintainers = with lib.maintainers; [ austin-artificial ];
    changelog = "https://github.com/KarnerTh/mermerd/releases/tag/v${version}";
    license = licenses.mit;
    maintainers = with maintainers; [ austin-artificial ];
  };

}