Skip to content

Commit

Permalink
otree: init at 0.2.0
Browse files Browse the repository at this point in the history
Co-authored-by: Alexis Hildebrandt <[email protected]>
  • Loading branch information
0x61nas and afh committed Jun 29, 2024
1 parent 8f31c8a commit a4d30f6
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions pkgs/by-name/ot/otree/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{ lib
, fetchFromGitHub
, rustPlatform
, stdenv
, darwin
}:

rustPlatform.buildRustPackage rec {
pname = "otree";
version = "0.2.0";

src = fetchFromGitHub {
owner = "fioncat";
repo = "otree";
rev = "v${version}";
hash = "sha256-M6xmz7aK+NNZUDN8NJCUEODwotJ9VeY3bsueFpwjjjs=";
};

buildInputs = lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.IOKit;

cargoLock = {
lockFile = src + "/Cargo.lock";
outputHashes = {
"tui-tree-widget-0.20.0" = "sha256-/uLp63J4FoMT1rMC9cv49JAX3SuPvFWPtvdS8pspsck=";
};
};

doCheck = false; # there are no tests

meta = {
description = "Command line tool to view objects (json/yaml/toml) in TUI tree widget";
homepage = "https://github.com/fioncat/otree";
changelog = "https://github.com/fioncat/otree/releases/tag/v${version}";
license = lib.licenses.mit;
mainProgram = "otree";
maintainers = with lib.maintainers; [ anas ];
platforms = with lib.platforms; unix ++ windows;
};
}

0 comments on commit a4d30f6

Please sign in to comment.