aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/tools/text/diffr/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/tools/text/diffr/default.nix')
-rw-r--r--nixpkgs/pkgs/tools/text/diffr/default.nix29
1 files changed, 29 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/tools/text/diffr/default.nix b/nixpkgs/pkgs/tools/text/diffr/default.nix
new file mode 100644
index 00000000000..c032d2e8b36
--- /dev/null
+++ b/nixpkgs/pkgs/tools/text/diffr/default.nix
@@ -0,0 +1,29 @@
+{ stdenv, fetchFromGitHub, rustPlatform, Security }:
+
+rustPlatform.buildRustPackage rec {
+ pname = "diffr";
+ version = "v0.1.2";
+
+ # diffr's tests expect the diffr binary to be at `$CARGO_MANIFEST_DIR/target/debug/diffr`.
+ doCheck = false;
+
+ src = fetchFromGitHub {
+ owner = "mookid";
+ repo = pname;
+ rev = version;
+ sha256 = "1fpcyl4kc4djfl6a2jlj56xqra42334vygz8n7614zgjpyxz3zx2";
+ };
+
+ cargoSha256 = "1dddb3a547qnpm1vvrgffb3v9m8sh19hmhy0fg6xjqpm032lqx3v";
+
+ nativeBuildInputs = [];
+ buildInputs = (stdenv.lib.optional stdenv.isDarwin Security);
+
+ meta = with stdenv.lib; {
+ description = "Yet another diff highlighting tool";
+ homepage = https://github.com/mookid/diffr;
+ license = with licenses; [ mit ];
+ maintainers = with maintainers; [ davidtwco ];
+ platforms = platforms.all;
+ };
+}