nixpkgs/pkgs/applications/version-management/git-and-tools/delta/default.nix

33 lines
957 B
Nix
Raw Normal View History

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
};
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";
changelog = "https://github.com/dandavison/delta/releases/tag/${version}";
2019-10-04 09:20:00 +00:00
license = licenses.mit;
maintainers = with maintainers; [ marsam ma27 ];
2019-10-04 09:20:00 +00:00
};
}