diff options
author | David Wood <david@davidtw.co> | 2019-09-26 11:46:13 +0100 |
---|---|---|
committer | David Wood <david@davidtw.co> | 2019-09-26 11:46:13 +0100 |
commit | 0140ba7ec11cc4db4e7dcdfacdb4ef9d0c7c5c64 (patch) | |
tree | 7ddfe8507dcc1348e71108120b5e6be8abf09329 /pkgs/tools/text/diffr | |
parent | 7d7bd8aa331c4f2447649d12dbfc86a02d32c297 (diff) |
diffr: init at 0.1.2
Signed-off-by: David Wood <david@davidtw.co>
Diffstat (limited to 'pkgs/tools/text/diffr')
-rw-r--r-- | pkgs/tools/text/diffr/default.nix | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/tools/text/diffr/default.nix b/pkgs/tools/text/diffr/default.nix new file mode 100644 index 000000000000..c032d2e8b361 --- /dev/null +++ b/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; + }; +} |