diffr: init at 0.1.2
Signed-off-by: David Wood <david@davidtw.co>
This commit is contained in:
parent
7d7bd8aa33
commit
0140ba7ec1
2 changed files with 33 additions and 0 deletions
29
pkgs/tools/text/diffr/default.nix
Normal file
29
pkgs/tools/text/diffr/default.nix
Normal file
|
@ -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;
|
||||
};
|
||||
}
|
|
@ -2630,6 +2630,10 @@ in
|
|||
jdk = jdk8;
|
||||
};
|
||||
|
||||
diffr = callPackage ../tools/text/diffr {
|
||||
inherit (darwin.apple_sdk.frameworks) Security;
|
||||
};
|
||||
|
||||
diffstat = callPackage ../tools/text/diffstat { };
|
||||
|
||||
diffutils = callPackage ../tools/text/diffutils { };
|
||||
|
|
Loading…
Reference in a new issue