ox: add test, update script and nixfmt-rfc-style (#354285)

This commit is contained in:
Vlad M. 2024-11-17 09:44:54 +02:00 committed by GitHub
commit 324b806102
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,4 +1,12 @@
{ lib, stdenv, fetchFromGitHub, rustPlatform }:
{
lib,
stdenv,
fetchFromGitHub,
rustPlatform,
testers,
nix-update-script,
ox,
}:
rustPlatform.buildRustPackage rec {
pname = "ox";
@ -13,6 +21,14 @@ rustPlatform.buildRustPackage rec {
cargoHash = "sha256-2Jk8uDiTGUQqLOOQVlYm5R7qQXIqP0PkFvv5E5qTzT0=";
passthru = {
tests.version = testers.testVersion {
package = ox;
};
updateScript = nix-update-script { };
};
meta = with lib; {
description = "Independent Rust text editor that runs in your terminal";
homepage = "https://github.com/curlpipe/ox";