Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
44 lines
1.1 KiB
Nix
44 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
rustPlatform,
|
|
fetchFromGitHub,
|
|
pkg-config,
|
|
openssl,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage (finalAttrs: {
|
|
pname = "zee";
|
|
version = "0.3.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "zee-editor";
|
|
repo = "zee";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-/9SogKOaXdFDB+e0//lrenTTbfmXqNFGr23L+6Pnm8w=";
|
|
};
|
|
|
|
cargoHash = "sha256-auwbpavF/WZQIE/htYXJ4di6xoRtXkBBkP/Bj4lFp6U=";
|
|
|
|
cargoPatches = [
|
|
# fixed upstream but unreleased
|
|
./update-ropey-for-rust-1.65.diff
|
|
];
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = [ openssl ];
|
|
|
|
# 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
|
|
env.ZEE_DISABLE_GRAMMAR_BUILD = 1;
|
|
|
|
meta = {
|
|
description = "Modern text editor for the terminal written in Rust";
|
|
homepage = "https://github.com/zee-editor/zee";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ booklearner ];
|
|
mainProgram = "zee";
|
|
};
|
|
})
|