Unverified Commit 324b8061 authored by Vlad M.'s avatar Vlad M. Committed by GitHub
Browse files

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

parents 6bf31969 6aad62aa
Loading
Loading
Loading
Loading
+17 −1
Original line number Diff line number Diff line
{ 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";