Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib
2, fetchpatch
3, fetchFromGitHub
4, python3
5}:
6
7let
8 pname = "nix-bisect";
9 version = "0.4.1";
10in
11python3.pkgs.buildPythonApplication {
12 inherit pname version;
13 format = "setuptools";
14
15 src = fetchFromGitHub {
16 owner = "timokau";
17 repo = pname;
18 rev = "v${version}";
19 hash = "sha256-01vj35mMakqKi5zbMIPQ+R8xdkOWbzpnigd3/SU+svw=";
20 };
21
22 patches = [
23 (fetchpatch {
24 # Fixes compatibility with recent nix versions
25 url = "https://github.com/timokau/nix-bisect/commit/01eefe174b740cb90e48b06d67d5582d51786b96.patch";
26 hash = "sha256-Gls/NtHH7LujdEgLbcIRZ12KsJDrasXIMcHeeBVns4A=";
27 })
28 (fetchpatch {
29 # Fixes TypeError crashes associated with drvs_failed inconsistency
30 url = "https://github.com/timokau/nix-bisect/commit/9f3a17783046baae64c16f9e2be917c2603977fc.patch";
31 hash = "sha256-U9NUtgwslcgIf/wvH/WE7t0HGs2OP3wvYDKrb5j+lp0=";
32 })
33 ];
34
35 propagatedBuildInputs = with python3.pkgs; [
36 appdirs
37 numpy
38 pexpect
39 ];
40
41 doCheck = false;
42
43 meta = with lib; {
44 description = "Bisect nix builds";
45 homepage = "https://github.com/timokau/nix-bisect";
46 license = licenses.mit;
47 maintainers = with maintainers; [ hexa ];
48 };
49}