mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-15 00:47:52 +00:00
d2: 0.3.0 -> 0.4.0
This commit is contained in:
parent
62412a4701
commit
a4aca2afa2
@ -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; };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user