mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-27 16:15:05 +00:00
84865c071a
This commit also change the passthru.updateScript to use the new version prefix. Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
43 lines
958 B
Nix
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 ];
|
|
};
|
|
}
|