1 { lib, buildGoModule, fetchFromGitHub, installShellFiles }:
7 src = fetchFromGitHub {
11 sha256 = "sha256-4jW8KJqdhrx79Q5ioyMGOlmLosTEkEIrdBwMjfiIcsY=";
14 vendorHash = "sha256-JhjngBZK3vWlKzCCkTWJf/VrBXUW6T4FcUivn5CMBjE=";
22 nativeBuildInputs = [ installShellFiles ];
24 # test fails with the injected version
26 substituteInPlace internal/cmd/cmds_test.go \
27 --replace "version (development)" ${version}
33 "-X=github.com/homeport/dyff/internal/cmd.version=${version}"
37 installShellCompletion --cmd dyff \
38 --bash <($out/bin/dyff completion bash) \
39 --fish <($out/bin/dyff completion fish) \
40 --zsh <($out/bin/dyff completion zsh)
44 description = "A diff tool for YAML files, and sometimes JSON";
47 dyff is inspired by the way the old BOSH v1 deployment output reported
48 changes from one version to another by only showing the parts of a YAML
51 Each difference is referenced by its location in the YAML document by
52 using either the Spruce or go-patch path syntax.
54 homepage = "https://github.com/homeport/dyff";
55 license = licenses.mit;
56 maintainers = with maintainers; [ edlimerkaj jceb ];