nixpkgs/pkgs/tools/text/chars/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

29 lines
709 B
Nix

{ lib, stdenv
, fetchFromGitHub
, rustPlatform
, Security
}:
rustPlatform.buildRustPackage rec {
pname = "chars";
version = "0.7.0";
src = fetchFromGitHub {
owner = "antifuchs";
repo = pname;
rev = "v${version}";
sha256 = "sha256-mBtwdPzIc6RgEFTyReStFlhS4UhhRWjBTKT6gD3tzpQ=";
};
cargoHash = "sha256-wqyExG4haco6jg1zpbouz3xMR7sjiVIAC16PnDU2tc8=";
buildInputs = lib.optionals stdenv.isDarwin [ Security ];
meta = with lib; {
description = "Commandline tool to display information about unicode characters";
mainProgram = "chars";
homepage = "https://github.com/antifuchs/chars";
license = licenses.mit;
maintainers = with maintainers; [ bbigras ];
};
}