mermerd: fix version command

This commit is contained in:
figsoda 2023-05-15 22:02:20 -04:00
parent c985c39be7
commit b03f1ceff6

View File

@ -1,6 +1,6 @@
{ buildGoModule { lib
, buildGoModule
, fetchFromGitHub , fetchFromGitHub
, lib
}: }:
buildGoModule rec { buildGoModule rec {
@ -16,15 +16,21 @@ buildGoModule rec {
vendorHash = "sha256-RSCpkQymvUvY2bOkjhsyKnDa3vezUjC33Nwv0+O4OOQ="; vendorHash = "sha256-RSCpkQymvUvY2bOkjhsyKnDa3vezUjC33Nwv0+O4OOQ=";
ldflags = [
"-s"
"-w"
"-X=main.version=${version}"
"-X=main.commit=${src.rev}"
];
# the tests expect a database to be running # the tests expect a database to be running
doCheck = false; doCheck = false;
meta = with lib; { meta = with lib; {
description = "Create Mermaid-Js ERD diagrams from existing tables"; description = "Create Mermaid-Js ERD diagrams from existing tables";
homepage = "https://github.com/KarnerTh/mermerd"; 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}"; changelog = "https://github.com/KarnerTh/mermerd/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ austin-artificial ];
}; };
} }