From 011c984b45c2f886a00386e973e5a271d3e1adfb Mon Sep 17 00:00:00 2001 From: Mario Rodas Date: Fri, 4 Oct 2019 04:20:00 -0500 Subject: [PATCH] gitAndTools.delta: init at 0.0.12 --- .../git-and-tools/default.nix | 2 ++ .../git-and-tools/delta/default.nix | 22 +++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 pkgs/applications/version-management/git-and-tools/delta/default.nix diff --git a/pkgs/applications/version-management/git-and-tools/default.nix b/pkgs/applications/version-management/git-and-tools/default.nix index a0f39bad3639..cb098f502768 100644 --- a/pkgs/applications/version-management/git-and-tools/default.nix +++ b/pkgs/applications/version-management/git-and-tools/default.nix @@ -24,6 +24,8 @@ let darcsToGit = callPackage ./darcs-to-git { }; + delta = callPackage ./delta { }; + diff-so-fancy = callPackage ./diff-so-fancy { }; ghq = callPackage ./ghq { }; diff --git a/pkgs/applications/version-management/git-and-tools/delta/default.nix b/pkgs/applications/version-management/git-and-tools/delta/default.nix new file mode 100644 index 000000000000..d4040c3a2a13 --- /dev/null +++ b/pkgs/applications/version-management/git-and-tools/delta/default.nix @@ -0,0 +1,22 @@ +{ lib, fetchFromGitHub, rustPlatform }: + +rustPlatform.buildRustPackage rec { + pname = "delta"; + version = "0.0.12"; + + src = fetchFromGitHub { + owner = "dandavison"; + repo = pname; + rev = version; + sha256 = "10jmawxzqgz7gjg1xdna9q2v6l1qlf83ybbqxcbx6941s15lgs7x"; + }; + + cargoSha256 = "1888bvkpalfcw9bc9zmf9bmil6x35l9ia31x6mx1h2dvrfpw3bb1"; + + meta = with lib; { + homepage = "https://github.com/dandavison/delta"; + description = "A syntax-highlighting pager for git"; + license = licenses.mit; + maintainers = [ maintainers.marsam ]; + }; +}