nixpkgs/pkgs/tools/text/chars/default.nix
2024-12-20 13:15:40 +01:00

35 lines
841 B
Nix

{ lib, stdenv
, fetchFromGitHub
, rustPlatform
, Security
, nix-update-script
}:
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.hostPlatform.isDarwin [ Security ];
passthru = {
updateScript = nix-update-script { extraArgs = [ "--version=branch" ]; };
};
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 ];
};
}