about summary refs log tree commit diff
path: root/pkgs/development/tools/dyff
diff options
context:
space:
mode:
authorEdli Merkaj <71988351+edlimerkaj@users.noreply.github.com>2021-10-04 16:11:11 +0200
committerGitHub <noreply@github.com>2021-10-04 16:11:11 +0200
commit273251e5930ab072c8105c01233550e3ffcc629f (patch)
tree6e6f3a0947b70decd4b9b2bc5a2d688087753f4b /pkgs/development/tools/dyff
parent5e6aaaf2388dff423c280e194d335ec72e0feca1 (diff)
dyff: init at 1.4.3 (#134772)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
Co-authored-by: Jan Christoph Ebersbach <jan-christoph.ebersbach@identinet.io>
Diffstat (limited to 'pkgs/development/tools/dyff')
-rw-r--r--pkgs/development/tools/dyff/default.nix36
1 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/development/tools/dyff/default.nix b/pkgs/development/tools/dyff/default.nix
new file mode 100644
index 0000000000000..c51e5738b9eeb
--- /dev/null
+++ b/pkgs/development/tools/dyff/default.nix
@@ -0,0 +1,36 @@
+{ lib, buildGoModule, fetchFromGitHub}:
+
+buildGoModule rec {
+  pname = "dyff";
+  version = "1.4.3";
+
+  src = fetchFromGitHub {
+    owner = "homeport";
+    repo = "dyff";
+    rev = "v${version}";
+    sha256 = "0r1nfwglyw8b46n17bpmgscfmjhjsbk83lgkpm63ysy0h5r84dq8";
+  };
+
+  vendorSha256 = "12mirnw229x5jkzda0c45vnjnv7fjvzf0rm3fcy5f3wza6hkx6q7";
+
+  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 ];
+  };
+}