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

42 lines
958 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 {
inherit pname version;
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 ];
};
}