nixpkgs/pkgs/development/tools/rust/cargo-rr/default.nix
Otavio Salvador 84865c071a cargo-rr: 0.1.3 -> 0.2.0
This commit also change the passthru.updateScript to use the new version
prefix.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2022-04-08 15:02:02 -03:00

43 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 ];
};
}