nixpkgs/pkgs/development/tools/rust/cargo-run-bin/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

30 lines
902 B
Nix

{ lib
, rustPlatform
, fetchCrate
}:
rustPlatform.buildRustPackage rec {
pname = "cargo-run-bin";
version = "1.7.2";
src = fetchCrate {
inherit pname version;
hash = "sha256-VhDCOTabj/HHc6bYdAUOErvxXOzyY3+e7GccZcb1cSQ=";
};
cargoHash = "sha256-riWWxv3FsBrgzVUWGtKvV4WjhgsXImLpiS9EJ40kCn8=";
# multiple impurities in tests
doCheck = false;
meta = with lib; {
description = "Build, cache, and run binaries scoped in Cargo.toml rather than installing globally. This acts similarly to npm run and gomodrun, and allows your teams to always be running the same tooling versions";
mainProgram = "cargo-bin";
homepage = "https://github.com/dustinblackman/cargo-run-bin";
changelog = "https://github.com/dustinblackman/cargo-run-bin/blob/v${version}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ mightyiam matthiasbeyer ];
};
}