about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/text/icdiff/default.nix
blob: 715a4dbaae2af675ce34f6ab3ca1b89eb9721207 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{ lib, fetchFromGitHub, python3Packages, bash, git, less }:

python3Packages.buildPythonApplication rec {
  pname = "icdiff";
  version = "1.9.5";

  src = fetchFromGitHub {
    owner = "jeffkaufman";
    repo = "icdiff";
    rev = "release-${version}";
    sha256 = "080v8h09pv8qwplin4kwfm0kmqjwdqjfxbpcdrv16sv4hwfwl5qd";
  };

  checkInputs = [
    bash
    git
    less
  ];

  # error: could not lock config file /homeless-shelter/.gitconfig: No such file or directory
  doCheck = false;

  checkPhase = ''
    patchShebangs test.sh
    ./test.sh ${python3Packages.python.interpreter}
  '';

  meta = with lib; {
    homepage = "https://www.jefftk.com/icdiff";
    description = "Side-by-side highlighted command line diffs";
    maintainers = with maintainers; [ ];
    license = licenses.psfl;
  };
}