-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Alexis Hildebrandt <[email protected]>
- Loading branch information
Showing
1 changed file
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
}; | ||
} |