Skip to content

Commit

Permalink
feat: package otree, remote rusty-rain and sloth
Browse files Browse the repository at this point in the history
  • Loading branch information
mrnossiom committed Jun 17, 2024
1 parent e0840e9 commit a2edef6
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 489 deletions.
1 change: 1 addition & 0 deletions home-manager/profiles/desktop.nix
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ in
mc
mediainfo
mind
otree
pv
ripgrep
speedtest-go
Expand Down
3 changes: 1 addition & 2 deletions pkgs/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@ in
find-unicode = pkgs.callPackage ./find-unicode.nix { };
git-along = pkgs.callPackage ./git-along.nix { };
names = pkgs.callPackage ./names.nix { };
otree = pkgs.callPackage ./otree.nix { };
probe-rs-udev-rules = pkgs.callPackage ./probe-rs-udev-rules.nix { };
rust-sloth = pkgs.callPackage ./rust-sloth.nix { };
rusty-rain = pkgs.callPackage ./rusty-rain { };
sweep = pkgs.callPackage ./sweep.nix { };

# Import packages defined in foreign repositories
Expand Down
33 changes: 33 additions & 0 deletions pkgs/otree.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{ lib
, upkgs

, fetchFromGitHub
}:

upkgs.rustPlatform.buildRustPackage rec {
pname = "otree";
version = "0.1.0";

src = fetchFromGitHub {
owner = "fioncat";
repo = pname;
# rev = "v${version}";
rev = "bbaf9d53659e242eb7e85517c2d8aacefcac7d25";
hash = "sha256-xqTfNFot8wXSTxsQVwM+4hD+z0BIbblC/lpd9uBJf8I=";
};

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

meta = with lib; {
description = "A command line tool to view objects (JSON/YAML/TOML) in TUI tree widget";
homepage = "https://github.com/fioncat/otree";
license = licenses.mit;
maintainers = with maintainers; [ mrnossiom ];
mainProgram = "otree";
};
}
26 changes: 0 additions & 26 deletions pkgs/rust-sloth.nix

This file was deleted.

Loading

0 comments on commit a2edef6

Please sign in to comment.