2020-04-26 23:17:00 +00:00
|
|
|
{ lib, fetchFromGitHub, rustPlatform, llvmPackages, installShellFiles }:
|
2019-10-04 09:20:00 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "delta";
|
2020-04-26 23:17:00 +00:00
|
|
|
version = "0.1.1";
|
2019-10-04 09:20:00 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dandavison";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2020-04-26 23:17:00 +00:00
|
|
|
sha256 = "1b5ap468d0gvgwkx6wqxvayzda2xw95lymd0kl38nq1fc0ica6hk";
|
2019-10-04 09:20:00 +00:00
|
|
|
};
|
|
|
|
|
2020-04-18 20:18:11 +00:00
|
|
|
LLVM_CONFIG_PATH = "${llvmPackages.llvm}/bin/llvm-config";
|
|
|
|
LIBCLANG_PATH = "${llvmPackages.libclang.lib}/lib";
|
|
|
|
|
2020-04-26 23:17:00 +00:00
|
|
|
cargoSha256 = "07mjl751r9d88fnmnan0ip0m3vxqf51vq2y7k3g3yywcgasj9jgr";
|
|
|
|
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
installShellCompletion --bash --name delta.bash completion/bash/completion.sh
|
|
|
|
'';
|
2019-10-04 09:20:00 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/dandavison/delta";
|
|
|
|
description = "A syntax-highlighting pager for git";
|
2019-12-04 09:20:00 +00:00
|
|
|
changelog = "https://github.com/dandavison/delta/releases/tag/${version}";
|
2019-10-04 09:20:00 +00:00
|
|
|
license = licenses.mit;
|
2019-12-26 14:13:48 +00:00
|
|
|
maintainers = with maintainers; [ marsam ma27 ];
|
2019-10-04 09:20:00 +00:00
|
|
|
};
|
|
|
|
}
|