1 { lib, rustPlatform, fetchFromGitHub, pkg-config, openssl, stdenv, Security }:
3 rustPlatform.buildRustPackage rec {
7 src = fetchFromGitHub {
11 sha256 = "sha256-/9SogKOaXdFDB+e0//lrenTTbfmXqNFGr23L+6Pnm8w=";
15 # fixed upstream but unreleased
16 ./update-ropey-for-rust-1.65.diff
19 nativeBuildInputs = [ pkg-config ];
21 buildInputs = [ openssl ] ++ lib.optional stdenv.hostPlatform.isDarwin Security;
23 # disable downloading and building the tree-sitter grammars at build time
24 # grammars can be configured in a config file and installed with `zee --build`
25 # see https://github.com/zee-editor/zee#syntax-highlighting
26 ZEE_DISABLE_GRAMMAR_BUILD=1;
28 cargoHash = "sha256-fBBjtjM7AnyAL6EOFstL4h6yS+UoLgxck6Mc0tJcXaI=";
31 description = "Modern text editor for the terminal written in Rust";
32 homepage = "https://github.com/zee-editor/zee";
33 license = licenses.mit;
34 maintainers = with maintainers; [ booklearner ];