summaryrefslogtreecommitdiffstats
path: root/pkgs/applications/editors
diff options
context:
space:
mode:
authorbooklearner <hey@booklearner.org>2022-08-07 18:38:43 -0400
committerbooklearner <hey@booklearner.org>2022-08-07 18:40:39 -0400
commit22880e58edd8be6024daf9e6fa4bae95b1449810 (patch)
treeb25573e71f71350741baf36b31c7e4afd9d8b442 /pkgs/applications/editors
parent981421c4800c9a0de583c13fcfbf2e0127f1970f (diff)
zee: init at `0.3.2`
Diffstat (limited to 'pkgs/applications/editors')
-rw-r--r--pkgs/applications/editors/zee/default.nix31
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/applications/editors/zee/default.nix b/pkgs/applications/editors/zee/default.nix
new file mode 100644
index 000000000000..9442044a1697
--- /dev/null
+++ b/pkgs/applications/editors/zee/default.nix
@@ -0,0 +1,31 @@
+{ 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=";
+ };
+
+ 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;
+
+ cargoSha256 = "sha256-mbqI1csnU95VWgax4GjIxB+nhMtmpaeJ8QQ3qb0hY4c=";
+
+ meta = with lib; {
+ description = "A modern text editor for the terminal written in Rust";
+ homepage = "https://github.com/zee-editor/zee";
+ license = licenses.mit;
+ maintainers = with maintainers; [ booklearner ];
+ };
+}