depot/third_party/nixpkgs/pkgs/development/tools/rust/cargo-rr/default.nix
Default email d2947cfef0 Project import generated by Copybara.
GitOrigin-RevId: 598f83ebeb2235435189cf84d844b8b73e858e0f
2022-10-06 20:32:54 +02:00

41 lines
929 B
Nix

{ lib
, rustPlatform
, fetchFromGitHub
, gitUpdater
, common-updater-scripts
, makeWrapper
, rr
}:
rustPlatform.buildRustPackage rec {
pname = "cargo-rr";
version = "0.2.0";
src = fetchFromGitHub {
owner = "danielzfranklin";
repo = pname;
rev = "v${version}";
sha256 = "sha256-lQS+bp1u79iO8WGrkZSFEuonr1eYjxIQYhUvM/kBao4";
};
cargoSha256 = "sha256-PdKqWMxTtBJbNqITs3IjNcpijXy6MHitEY4jDp4jZro=";
passthru = {
updateScript = gitUpdater {
rev-prefix = "v";
};
};
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 ];
};
}