14 rustPlatform.buildRustPackage rec {
15 pname = "cargo-bisect-rustc";
18 src = fetchFromGitHub {
22 hash = "sha256-7HiM1oRuLSfRaum66duag/w8ncFdxRLF0yeSGlIey0Y=";
28 runCommand "0001-dynamically-patchelf-binaries.patch"
32 libPath = "$ORIGIN/../lib:${lib.makeLibraryPath [ zlib ]}";
35 export dynamicLinker=$(cat $CC/nix-support/dynamic-linker)
36 substitute ${./0001-dynamically-patchelf-binaries.patch} $out \
37 --subst-var patchelf \
38 --subst-var dynamicLinker \
42 lib.optionals stdenv.hostPlatform.isLinux [ patchelfPatch ];
44 nativeBuildInputs = [ pkg-config ];
48 ++ lib.optionals stdenv.hostPlatform.isDarwin [
49 darwin.apple_sdk.frameworks.Security
50 darwin.apple_sdk.frameworks.SystemConfiguration
53 cargoHash = "sha256-CgEs0cejquFRY3VN6CgbE23Gipg+LEuWp/jSIkITrjw=";
56 "--skip test_github" # requires internet
60 description = "Bisects rustc, either nightlies or CI artifacts";
61 mainProgram = "cargo-bisect-rustc";
62 homepage = "https://github.com/rust-lang/cargo-bisect-rustc";
63 license = with licenses; [
67 maintainers = with maintainers; [ davidtwco ];