1 { lib, buildGoModule, fetchFromGitHub, installShellFiles }:
7 src = fetchFromGitHub {
11 sha256 = "sha256-y5gep3v+totupFbsAuGhySUbcESmQeGHWteQFFXj2Kw=";
14 vendorHash = "sha256-cRPAjFVvjCgT+m8ceAQJt5ZE8ax7jefzdVWPGM45LpY=";
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 = "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 ];