d2: 0.7.0 -> 0.7.1, modernize (#435226)

This commit is contained in:
Weijia Wang
2025-08-22 10:04:17 +02:00
committed by GitHub
+10 -10
View File
@@ -1,6 +1,6 @@
{
lib,
buildGo123Module,
buildGoModule,
fetchFromGitHub,
installShellFiles,
git,
@@ -8,25 +8,25 @@
d2,
}:
buildGo123Module rec {
buildGoModule (finalAttrs: {
pname = "d2";
version = "0.7.0";
version = "0.7.1";
src = fetchFromGitHub {
owner = "terrastruct";
repo = "d2";
tag = "v${version}";
hash = "sha256-RlQRf/ueYCbanXXA8tAftQ/9JKkH0QwT4+7Vlwtlnp8=";
tag = "v${finalAttrs.version}";
hash = "sha256-ZRAvMcJKQmvcBbT2foKDYS0gTeqOZqFu3V3iXIbfLsQ=";
};
vendorHash = "sha256-STiIS0BRHypNujKNtNb77IXBDdeHVl/uGjVFubJrDc8=";
vendorHash = "sha256-UZDk2upJ0xTSAg/DpRHCzdAOLnaeI0WLMJ6jNt8elKI=";
excludedPackages = [ "./e2etests" ];
ldflags = [
"-s"
"-w"
"-X oss.terrastruct.com/d2/lib/version.Version=v${version}"
"-X oss.terrastruct.com/d2/lib/version.Version=v${finalAttrs.version}"
];
nativeBuildInputs = [ installShellFiles ];
@@ -44,18 +44,18 @@ buildGo123Module rec {
passthru.tests.version = testers.testVersion {
package = d2;
version = "v${version}";
version = "v${finalAttrs.version}";
};
meta = {
description = "Modern diagram scripting language that turns text to diagrams";
mainProgram = "d2";
homepage = "https://d2lang.com";
changelog = "https://github.com/terrastruct/d2/releases/tag/v${version}";
changelog = "https://github.com/terrastruct/d2/releases/tag/v${finalAttrs.version}";
license = lib.licenses.mpl20;
maintainers = with lib.maintainers; [
dit7ya
kashw2
];
};
}
})