2024-10-04 16:56:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, rustPlatform, darwin }:
|
2021-02-13 14:23:35 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "ox";
|
2024-10-04 16:56:33 +00:00
|
|
|
version = "0.6.1";
|
2021-02-13 14:23:35 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "curlpipe";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2024-10-04 16:56:33 +00:00
|
|
|
hash = "sha256-37o8Ak+8LPeGny7JBLc2STpRjfWBCwOrRyP3HJbD25o=";
|
2021-02-13 14:23:35 +00:00
|
|
|
};
|
|
|
|
|
2024-10-04 16:56:33 +00:00
|
|
|
cargoHash = "sha256-c7XhMYfhMCxyidZJemnu5f9KwQmPmbun6mrI3v2EpZ4=";
|
|
|
|
|
|
|
|
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ darwin.apple_sdk.frameworks.AppKit ];
|
2021-02-13 14:23:35 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Independent Rust text editor that runs in your terminal";
|
2021-02-13 14:23:35 +00:00
|
|
|
homepage = "https://github.com/curlpipe/ox";
|
|
|
|
changelog = "https://github.com/curlpipe/ox/releases/tag/${version}";
|
|
|
|
license = licenses.gpl2Only;
|
2024-01-02 11:29:13 +00:00
|
|
|
maintainers = with maintainers; [ moni ];
|
|
|
|
mainProgram = "ox";
|
2021-02-13 14:23:35 +00:00
|
|
|
};
|
|
|
|
}
|