mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 02:03:01 +00:00
50 lines
1.2 KiB
Nix
50 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 ];
|
|
};
|
|
}
|