depot/third_party/nixpkgs/pkgs/development/tools/misc/nix-bisect/default.nix
Default email bb584b27e9 Project import generated by Copybara.
GitOrigin-RevId: 5181d5945eda382ff6a9ca3e072ed6ea9b547fee
2022-04-15 03:41:22 +02:00

44 lines
933 B
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=";
})
];
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 ];
};
}