Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 93de24be3580
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 3666a66ee0e4
Choose a head ref
  • 2 commits
  • 1 file changed
  • 2 contributors

Commits on Jan 28, 2021

  1. procs: add shell completions

    danieldk committed Jan 28, 2021
    Copy the full SHA
    e0634a3 View commit details
  2. Merge pull request #111022 from danieldk/procs-completions

    procs: add shell completions
    SuperSandro2000 authored Jan 28, 2021
    Copy the full SHA
    3666a66 View commit details
Showing with 10 additions and 1 deletion.
  1. +10 −1 pkgs/tools/admin/procs/default.nix
11 changes: 10 additions & 1 deletion pkgs/tools/admin/procs/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ lib, stdenv, fetchFromGitHub, rustPlatform, Security }:
{ lib, stdenv, fetchFromGitHub, rustPlatform, installShellFiles, Security }:

rustPlatform.buildRustPackage rec {
pname = "procs";
@@ -13,6 +13,15 @@ rustPlatform.buildRustPackage rec {

cargoSha256 = "sha256-ilSDLbPQnmhQcNbtKCpUNmyZY0JUY/Ksg0sj/t7veT0=";

nativeBuildInputs = [ installShellFiles ];

postInstall = ''
for shell in bash fish zsh; do
$out/bin/procs --completion $shell > procs.$shell
installShellCompletion procs.$shell
done
'';

buildInputs = lib.optional stdenv.isDarwin Security;

meta = with lib; {