cargo-rr: init at 0.1.3

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
This commit is contained in:
Otavio Salvador 2021-04-30 23:17:21 -03:00
parent 8e4fe32876
commit 0c73f4e985
2 changed files with 41 additions and 0 deletions

View File

@ -0,0 +1,40 @@
{ lib
, rustPlatform
, fetchFromGitHub
, nix-update-script
, makeWrapper
, rr
}:
rustPlatform.buildRustPackage rec {
pname = "cargo-rr";
version = "0.1.3";
src = fetchFromGitHub {
owner = "danielzfranklin";
repo = pname;
rev = version;
sha256 = "01m8fdz9as2fxnzs9csvbc76qxzbb98a66dh7w4a5q855v38g0zy";
};
cargoSha256 = "0fjs76n6bbbv83s213h2dgsszgxy4hbjsclyk9m81b3bfbmmb9sa";
passthru = {
updateScript = nix-update-script {
attrPath = pname;
};
};
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 ];
};
}

View File

@ -11393,6 +11393,7 @@ in
cargo-release = callPackage ../tools/package-management/cargo-release {
inherit (darwin.apple_sdk.frameworks) Security;
};
cargo-rr = callPackage ../development/tools/rust/cargo-rr { };
cargo-tarpaulin = callPackage ../development/tools/analysis/cargo-tarpaulin { };
cargo-update = callPackage ../tools/package-management/cargo-update {
inherit (darwin.apple_sdk.frameworks) Security;