nixpkgs/pkgs/development/tools/dyff/default.nix

37 lines
986 B
Nix
Raw Normal View History

{ lib, buildGoModule, fetchFromGitHub}:
buildGoModule rec {
pname = "dyff";
2021-10-29 13:03:13 +02:00
version = "1.4.5";
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-29 13:03:13 +02:00
vendorSha256 = "sha256-3L3FtL/P+Jyvv0WESBvfSxJOl99v5QDyyzIqottB2EI=";
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 ];
};
}