mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-09 04:06:53 +00:00
mermerd: fix version command
This commit is contained in:
parent
c985c39be7
commit
b03f1ceff6
@ -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 ];
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user