472aeafc57
GitOrigin-RevId: c31898adf5a8ed202ce5bea9f347b1c6871f32d1
26 lines
791 B
Nix
26 lines
791 B
Nix
{ lib, stdenv, fetchFromGitHub, rustPlatform, darwin }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "ox";
|
|
version = "0.6.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "curlpipe";
|
|
repo = pname;
|
|
rev = version;
|
|
hash = "sha256-37o8Ak+8LPeGny7JBLc2STpRjfWBCwOrRyP3HJbD25o=";
|
|
};
|
|
|
|
cargoHash = "sha256-c7XhMYfhMCxyidZJemnu5f9KwQmPmbun6mrI3v2EpZ4=";
|
|
|
|
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ darwin.apple_sdk.frameworks.AppKit ];
|
|
|
|
meta = with lib; {
|
|
description = "Independent Rust text editor that runs in your terminal";
|
|
homepage = "https://github.com/curlpipe/ox";
|
|
changelog = "https://github.com/curlpipe/ox/releases/tag/${version}";
|
|
license = licenses.gpl2Only;
|
|
maintainers = with maintainers; [ moni ];
|
|
mainProgram = "ox";
|
|
};
|
|
}
|