new packages

This commit is contained in:
Dmitriy Kholkin 2020-08-08 17:38:29 +04:00
parent 6a4ea8d180
commit 52287631d2
5 changed files with 75 additions and 6 deletions

View File

@ -0,0 +1,30 @@
{ stdenv, fetchFromGitHub, python3Packages }:
stdenv.mkDerivation rec {
name = "bpytop";
version = "1.0.7";
src = fetchFromGitHub {
owner = "aristocratos";
repo = "${name}";
rev = "v${version}";
sha256 = "08hi55wh423j1rfdivnil94sg9admxygzv1diibfygwvknilv9qj";
};
propagatedBuildInputs = with python3Packages; [ psutil ];
installPhase = ''
mkdir -p "$out/bin"
cp -p bpytop.py "$out/bin/bpytop"
mkdir -p "$out/share/bpytop/doc"
cp -p README.md "$out/share/bpytop/doc"
cp -pr themes "$out/share/bpytop"
chmod 755 "$out/bin/bpytop"
'';
meta = {
homepage = "https://github.com/aristocratos/bpytop";
description = "Resource monitor that shows usage and stats for processor, memory, disks, network and processes.";
license = stdenv.lib.licenses.asl20;
maintainers = with stdenv.lib.maintainers; [ alukardbf ];
};
}

View File

@ -0,0 +1,26 @@
{ stdenv, fetchFromGitHub, rustPlatform, cmake, pkgconfig }:
with rustPlatform;
buildRustPackage rec {
pname = "nomino";
version = "0.4.2";
cargoSha256 = "sha256-9p/HD16yreWdjbCaUaan07fnVpPwOCiHaVemfXP6L8c=";
src = fetchFromGitHub {
owner = "yaa110";
repo = "nomino";
rev = "8f437051ea51d333aa685679f0e5902d6709d7ef";
sha256 = "1qmy73gmmf0i9svzrw2jz7nlypfybyd1izwd1a13fgm9dn7amja3";
};
nativeBuildInputs = [ cmake pkgconfig ];
meta = with stdenv.lib; {
description = "Batch rename utility for developers";
homepage = "https://github.com/yaa110/nomino";
license = licenses.mit;
maintainers = with maintainers; [ alukardbf ];
};
}

View File

@ -42,7 +42,6 @@ in {
libva-utils
lm_sensors
libnotify
tree
gparted
neofetch
bashmount
@ -50,14 +49,18 @@ in {
feh
# new tools
tldr
tealdeer
pinfo
ncdu
fd
ripgrep
lnav
advance-touch
advance-touch # python3 pip
exa
vimv
nomino # rust build
bpytop
nnn
# vimv
# cli
ranger
youtube-dl

View File

@ -20,6 +20,10 @@
advance-touch = pkgs.callPackage ./applications/advance-touch.nix { };
nomino = pkgs.callPackage ./applications/nomino.nix { };
bpytop = pkgs.callPackage ./applications/bpytop.nix { };
# git-with-libsecret = super.git.override { withLibsecret = true; };
# spotifyd = super.spotifyd.override { withPulseAudio = true; };

View File

@ -29,7 +29,7 @@
shellAliases = {
"clr" = "clear";
"weather" = "curl wttr.in/Volzhskiy";
"l" = "ls -lah --group-directories-first";
# "l" = "ls -lah --group-directories-first";
"rede" = "systemctl --user start redshift.service &";
"redd" = "systemctl --user stop redshift.service &";
"bare" = "systemctl --user start barrier-client.service &";
@ -41,7 +41,13 @@
"nsp" = "nix-shell --run zsh -p";
"find" = "fd";
"grep" = "rg";
"mkdir" = "ad";
# "mkdir" = "ad";
"man" = "pinfo";
"l" = "exa -lahgGF@ --git --group-directories-first";
"tree" = "exa -T";
"ltree" = "exa -lhgFT@ --git";
"atree" = "exa -aT";
"latree" = "exa -lahgFT@ --git";
};
initExtra = ''
nixify() {