2021-03-26 09:27:14 +01:00
|
|
|
{ lib, fetchFromGitHub, python3Packages, bash, git, less }:
|
2016-03-23 14:37:57 +01:00
|
|
|
|
2021-03-26 09:27:14 +01:00
|
|
|
python3Packages.buildPythonApplication rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "icdiff";
|
2019-09-26 23:47:06 +02:00
|
|
|
version = "1.9.5";
|
2016-03-23 14:37:57 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jeffkaufman";
|
|
|
|
repo = "icdiff";
|
|
|
|
rev = "release-${version}";
|
2019-09-26 23:47:06 +02:00
|
|
|
sha256 = "080v8h09pv8qwplin4kwfm0kmqjwdqjfxbpcdrv16sv4hwfwl5qd";
|
2016-03-23 14:37:57 +01:00
|
|
|
};
|
|
|
|
|
2021-03-26 09:27:14 +01:00
|
|
|
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}
|
|
|
|
'';
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://www.jefftk.com/icdiff";
|
2016-03-23 14:37:57 +01:00
|
|
|
description = "Side-by-side highlighted command line diffs";
|
|
|
|
maintainers = with maintainers; [ aneeshusa ];
|
|
|
|
license = licenses.psfl;
|
|
|
|
};
|
|
|
|
}
|