nixpkgs/pkgs/development/tools/analysis/bingrep/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

24 lines
634 B
Nix

{ lib, rustPlatform, fetchFromGitHub }:
rustPlatform.buildRustPackage rec {
pname = "bingrep";
version = "0.11.0";
src = fetchFromGitHub {
owner = "m4b";
repo = pname;
rev = "v${version}";
hash = "sha256-bHu3/f25U1QtRZv1z5OQSDMayOpLU6tbNaV00K55ZY8=";
};
cargoHash = "sha256-n49VmAJcD98LdkrUCW6ouihSXmSCsdBDvCe9l96G0ec=";
meta = with lib; {
description = "Greps through binaries from various OSs and architectures, and colors them";
mainProgram = "bingrep";
homepage = "https://github.com/m4b/bingrep";
license = licenses.mit;
maintainers = with maintainers; [ minijackson ];
};
}