depot/third_party/nixpkgs/pkgs/development/tools/misc/nix-bisect/default.nix
Default email 02cf88bb76 Project import generated by Copybara.
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
2022-08-12 15:06:08 +03:00

49 lines
1.2 KiB
Nix

{ lib
, fetchpatch
, fetchFromGitHub
, python3
}:
let
pname = "nix-bisect";
version = "0.4.1";
in
python3.pkgs.buildPythonApplication {
inherit pname version;
format = "setuptools";
src = fetchFromGitHub {
owner = "timokau";
repo = pname;
rev = "v${version}";
hash = "sha256-01vj35mMakqKi5zbMIPQ+R8xdkOWbzpnigd3/SU+svw=";
};
patches = [
(fetchpatch {
# Fixes compatibility with recent nix versions
url = "https://github.com/timokau/nix-bisect/commit/01eefe174b740cb90e48b06d67d5582d51786b96.patch";
hash = "sha256-Gls/NtHH7LujdEgLbcIRZ12KsJDrasXIMcHeeBVns4A=";
})
(fetchpatch {
# Fixes TypeError crashes associated with drvs_failed inconsistency
url = "https://github.com/timokau/nix-bisect/commit/9f3a17783046baae64c16f9e2be917c2603977fc.patch";
hash = "sha256-U9NUtgwslcgIf/wvH/WE7t0HGs2OP3wvYDKrb5j+lp0=";
})
];
propagatedBuildInputs = with python3.pkgs; [
appdirs
numpy
pexpect
];
doCheck = false;
meta = with lib; {
description = "Bisect nix builds";
homepage = "https://github.com/timokau/nix-bisect";
license = licenses.mit;
maintainers = with maintainers; [ hexa ];
};
}