yep, more dotfiles
1{ lib 2 3, stdenv 4, rustPlatform 5, fetchFromGitHub 6, darwin 7}: 8 9rustPlatform.buildRustPackage rec { 10 pname = "otree"; 11 version = "0.1.0"; 12 13 src = fetchFromGitHub { 14 owner = "fioncat"; 15 repo = pname; 16 # rev = "v${version}"; 17 rev = "bbaf9d53659e242eb7e85517c2d8aacefcac7d25"; 18 hash = "sha256-xqTfNFot8wXSTxsQVwM+4hD+z0BIbblC/lpd9uBJf8I="; 19 }; 20 21 cargoLock = { 22 lockFile = "${src}/Cargo.lock"; 23 outputHashes = { 24 "tui-tree-widget-0.20.0" = "sha256-/uLp63J4FoMT1rMC9cv49JAX3SuPvFWPtvdS8pspsck="; 25 }; 26 }; 27 28 buildInputs = [ ] 29 ++ lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.IOKit ]; 30 31 meta = with lib; { 32 description = "A command line tool to view objects (JSON/YAML/TOML) in TUI tree widget"; 33 homepage = "https://github.com/fioncat/otree"; 34 license = licenses.mit; 35 maintainers = with maintainers; [ mrnossiom ]; 36 mainProgram = "otree"; 37 }; 38}