2021-05-03 20:48:10 +00:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
2022-04-15 01:41:22 +00:00
|
|
|
, gitUpdater
|
2022-03-05 16:20:37 +00:00
|
|
|
, common-updater-scripts
|
2021-05-03 20:48:10 +00:00
|
|
|
, makeWrapper
|
|
|
|
, rr
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "cargo-rr";
|
2022-04-15 01:41:22 +00:00
|
|
|
version = "0.2.0";
|
2021-05-03 20:48:10 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "danielzfranklin";
|
|
|
|
repo = pname;
|
2022-04-15 01:41:22 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "sha256-lQS+bp1u79iO8WGrkZSFEuonr1eYjxIQYhUvM/kBao4";
|
2021-05-03 20:48:10 +00:00
|
|
|
};
|
|
|
|
|
2022-04-15 01:41:22 +00:00
|
|
|
cargoSha256 = "sha256-PdKqWMxTtBJbNqITs3IjNcpijXy6MHitEY4jDp4jZro=";
|
2021-05-03 20:48:10 +00:00
|
|
|
|
|
|
|
passthru = {
|
2022-04-15 01:41:22 +00:00
|
|
|
updateScript = gitUpdater {
|
2022-03-05 16:20:37 +00:00
|
|
|
inherit pname version;
|
2022-04-15 01:41:22 +00:00
|
|
|
rev-prefix = "v";
|
2021-05-03 20:48:10 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
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";
|
|
|
|
homepage = "https://github.com/danielzfranklin/cargo-rr";
|
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ otavio ];
|
|
|
|
};
|
|
|
|
}
|