mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 15:33:13 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
35 lines
813 B
Nix
35 lines
813 B
Nix
{ 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";
|
|
};
|
|
|
|
nativeCheckInputs = [
|
|
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;
|
|
};
|
|
}
|