d2: 0.3.0 -> 0.4.0

This commit is contained in:
Aaron Jheng 2023-04-09 14:03:42 +00:00
parent 62412a4701
commit a4aca2afa2
No known key found for this signature in database
GPG Key ID: F6A547A869D050A3

View File

@ -2,23 +2,26 @@
, buildGoModule
, fetchFromGitHub
, installShellFiles
, git
, testers
, d2
}:
buildGoModule rec {
pname = "d2";
version = "0.3.0";
version = "0.4.0";
src = fetchFromGitHub {
owner = "terrastruct";
repo = pname;
rev = "v${version}";
hash = "sha256-ll6kOmHJZRsN6DkQRAUXyxz61tjwwi+p5eOuLfGDpI8=";
hash = "sha256-vMgOFZJwlWjNfOp4QsFoq1y9JQm16qDkP7uoOwICuTo=";
};
vendorHash = "sha256-jfGolYHWX/9Zr5JHiWl8mCfaaRT2AU8v32PtgM1KI8c=";
excludedPackages = [ "./e2etests" ];
ldflags = [
"-s"
"-w"
@ -31,7 +34,12 @@ buildGoModule rec {
installManPage ci/release/template/man/d2.1
'';
subPackages = [ "." ];
nativeCheckInputs = [ git ];
preCheck = ''
# See https://github.com/terrastruct/d2/blob/master/docs/CONTRIBUTING.md#running-tests.
export TESTDATA_ACCEPT=1
'';
passthru.tests.version = testers.testVersion { package = d2; };