diff options
Diffstat (limited to 'infra/libkookie/nixpkgs/pkgs/tools/system/bottom/default.nix')
-rw-r--r-- | infra/libkookie/nixpkgs/pkgs/tools/system/bottom/default.nix | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/infra/libkookie/nixpkgs/pkgs/tools/system/bottom/default.nix b/infra/libkookie/nixpkgs/pkgs/tools/system/bottom/default.nix index 498ab1136fa4..8c5e2833212c 100644 --- a/infra/libkookie/nixpkgs/pkgs/tools/system/bottom/default.nix +++ b/infra/libkookie/nixpkgs/pkgs/tools/system/bottom/default.nix @@ -1,22 +1,28 @@ -{ stdenv, fetchFromGitHub, rustPlatform, darwin }: +{ stdenv, fetchFromGitHub, rustPlatform, darwin, installShellFiles }: rustPlatform.buildRustPackage rec { pname = "bottom"; - version = "0.4.7"; + version = "0.5.3"; src = fetchFromGitHub { owner = "ClementTsang"; repo = pname; rev = version; - sha256 = "rDcJ5XF7L13MKZ8/J4sYD+UqC+HkZvxRtDkY9IVLH50="; + sha256 = "sha256-Gc2bL7KqDqab0hCCOi2rtEw+5r0bSETzTipLLdX/ipk="; }; + nativeBuildInputs = [ installShellFiles ]; + buildInputs = stdenv.lib.optional stdenv.hostPlatform.isDarwin darwin.apple_sdk.frameworks.IOKit; - cargoSha256 = "XeX6QM0a628mcaptNZkKAvDnGfW5tx+aWNBpMyjz44M="; + cargoSha256 = "sha256-Bdkq3cTuziTQ7/BkvuBHbfuxRIXnz4h2OadoAGNTBc0="; doCheck = false; + postInstall = '' + installShellCompletion $releaseDir/build/bottom-*/out/btm.{bash,fish} --zsh $releaseDir/build/bottom-*/out/_btm + ''; + meta = with stdenv.lib; { description = "A cross-platform graphical process/system monitor with a customizable interface"; homepage = "https://github.com/ClementTsang/bottom"; @@ -25,4 +31,3 @@ rustPlatform.buildRustPackage rec { platforms = platforms.unix; }; } - |