depot/third_party/nixpkgs/pkgs/applications/editors/zee/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

37 lines
1.1 KiB
Nix

{ lib, rustPlatform, fetchFromGitHub, pkg-config, openssl, stdenv, Security }:
rustPlatform.buildRustPackage rec {
pname = "zee";
version = "0.3.2";
src = fetchFromGitHub {
owner = "zee-editor";
repo = pname;
rev = "v${version}";
sha256 = "sha256-/9SogKOaXdFDB+e0//lrenTTbfmXqNFGr23L+6Pnm8w=";
};
cargoPatches = [
# fixed upstream but unreleased
./update-ropey-for-rust-1.65.diff
];
nativeBuildInputs = [ pkg-config ];
buildInputs = [ openssl ] ++ lib.optional stdenv.isDarwin Security;
# disable downloading and building the tree-sitter grammars at build time
# grammars can be configured in a config file and installed with `zee --build`
# see https://github.com/zee-editor/zee#syntax-highlighting
ZEE_DISABLE_GRAMMAR_BUILD=1;
cargoHash = "sha256-fBBjtjM7AnyAL6EOFstL4h6yS+UoLgxck6Mc0tJcXaI=";
meta = with lib; {
description = "Modern text editor for the terminal written in Rust";
homepage = "https://github.com/zee-editor/zee";
license = licenses.mit;
maintainers = with maintainers; [ booklearner ];
mainProgram = "zee";
};
}