nixpkgs/pkgs/development/tools/rust/cargo-deps/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

22 lines
598 B
Nix

{ lib, fetchCrate, rustPlatform }:
rustPlatform.buildRustPackage rec {
pname = "cargo-deps";
version = "1.5.1";
src = fetchCrate {
inherit pname version;
hash = "sha256-qnSHG4AhBrleYKZ4SJ4AwHdJyiidj8NTeSSphBRo7gg=";
};
cargoHash = "sha256-dpCbFA9AZmIFPx69tw0CqHF+lVw7uhUlwAeVX1+lIK8=";
meta = with lib; {
description = "Cargo subcommand for building dependency graphs of Rust projects";
mainProgram = "cargo-deps";
homepage = "https://github.com/m-cat/cargo-deps";
license = licenses.mit;
maintainers = with maintainers; [ arcnmx matthiasbeyer ];
};
}