mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-19 12:11:28 +00:00
mermerd: fix version command
This commit is contained in:
parent
c985c39be7
commit
b03f1ceff6
|
@ -1,6 +1,6 @@
|
|||
{ 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 ];
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue