2019-09-26 11:46:13 +01:00
|
|
|
{ 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";
|
|
|
|
};
|
|
|
|
|
2020-02-28 02:31:11 +00:00
|
|
|
cargoSha256 = "17xgjk8li29b8q8p2bi56klqg0v2q0j6ich438c4p06jrszccx1f";
|
2019-09-26 11:46:13 +01:00
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|