mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00

They are not doing anything right now. This is in preparation for their complete removal from the tree. Note: several changes that affect the derivation inputs (e.g. removal of references to stub paths in build instructions) were left out. They will be cleaned up the next iteration and will require special care. Note: this PR is a result of a mix of ugly regex (not AST) based automation and some manual labor. For reference, the regex automation part was hacked in: https://github.com/booxter/nix-clean-apple_sdk Signed-off-by: Ihar Hrachyshka <ihar.hrachyshka@gmail.com>
44 lines
1.1 KiB
Nix
44 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
rustPlatform,
|
|
fetchFromGitHub,
|
|
pkg-config,
|
|
openssl,
|
|
}:
|
|
|
|
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 ];
|
|
|
|
# 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;
|
|
|
|
useFetchCargoVendor = true;
|
|
cargoHash = "sha256-auwbpavF/WZQIE/htYXJ4di6xoRtXkBBkP/Bj4lFp6U=";
|
|
|
|
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";
|
|
};
|
|
}
|