Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

44 lines
962 B
Nix
Raw Permalink Normal View History

2025-10-09 14:15:47 +02:00
{
lib,
rustPlatform,
fetchFromGitHub,
nix-update-script,
makeWrapper,
rr,
}:
rustPlatform.buildRustPackage rec {
pname = "cargo-rr";
version = "0.3.0";
src = fetchFromGitHub {
owner = "danielzfranklin";
repo = "cargo-rr";
rev = "v${version}";
sha256 = "sha256-t8pRqeOdaRVG0titQhxezT2aDjljSs//MnRTTsJ73Yo=";
};
cargoHash = "sha256-s3KZFntAb/q4oreJLDQ2Pnz+Oj8Ik36vYR2InY0BIBw=";
passthru = {
updateScript = nix-update-script { };
};
nativeBuildInputs = [ makeWrapper ];
postInstall = ''
wrapProgram $out/bin/cargo-rr --prefix PATH : ${lib.makeBinPath [ rr ]}
'';
meta = with lib; {
description = "Cargo subcommand \"rr\": a light wrapper around rr, the time-travelling debugger";
mainProgram = "cargo-rr";
homepage = "https://github.com/danielzfranklin/cargo-rr";
license = with licenses; [ mit ];
maintainers = with maintainers; [
otavio
matthiasbeyer
];
};
}