2021-10-04 16:11:11 +02:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "dyff";
|
2021-10-29 13:03:13 +02:00
|
|
|
version = "1.4.5";
|
2021-10-04 16:11:11 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "homeport";
|
|
|
|
repo = "dyff";
|
|
|
|
rev = "v${version}";
|
2021-10-29 13:03:13 +02:00
|
|
|
sha256 = "sha256-TaGtl5TBQMHjY4/HmDUghyhrsc5fjSMmY+oqO+rKGo4=";
|
2021-10-04 16:11:11 +02:00
|
|
|
};
|
|
|
|
|
2021-10-29 13:03:13 +02:00
|
|
|
vendorSha256 = "sha256-3L3FtL/P+Jyvv0WESBvfSxJOl99v5QDyyzIqottB2EI=";
|
2021-10-04 16:11:11 +02:00
|
|
|
|
|
|
|
subPackages = [
|
|
|
|
"cmd/dyff"
|
|
|
|
"pkg/dyff"
|
|
|
|
"internal/cmd"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A diff tool for YAML files, and sometimes JSON";
|
|
|
|
longDescription = ''
|
|
|
|
dyff is inspired by the way the old BOSH v1 deployment output reported
|
|
|
|
changes from one version to another by only showing the parts of a YAML
|
|
|
|
file that change.
|
|
|
|
|
|
|
|
Each difference is referenced by its location in the YAML document by
|
|
|
|
using either the Spruce or go-patch path syntax.
|
|
|
|
'';
|
|
|
|
homepage = "https://github.com/homeport/dyff";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ edlimerkaj ];
|
|
|
|
};
|
|
|
|
}
|