Skip to content

Commit

Permalink
googler: install completions
Browse files Browse the repository at this point in the history
  • Loading branch information
marsam committed Jul 31, 2020
1 parent 5885473 commit e4980d9
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions pkgs/applications/misc/googler/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, python }:
{ stdenv, fetchFromGitHub, python, installShellFiles }:

stdenv.mkDerivation rec {
pname = "googler";
@@ -11,15 +11,23 @@ stdenv.mkDerivation rec {
sha256 = "0c480wzc7q4pks1f6mnayr580c73jhzshliz4hgznzc7zwcdf41w";
};

propagatedBuildInputs = [ python ];
buildInputs = [ python ];

nativeBuildInputs = [ installShellFiles ];

makeFlags = [ "PREFIX=$(out)" ];

postInstall = ''
installShellCompletion --bash --name googler.bash auto-completion/bash/googler-completion.bash
installShellCompletion --fish auto-completion/fish/googler.fish
installShellCompletion --zsh auto-completion/zsh/_googler
'';

meta = with stdenv.lib; {
homepage = "https://github.com/jarun/googler";
description = "Google Search, Google Site Search, Google News from the terminal";
license = licenses.gpl3;
maintainers = with maintainers; [ koral filalex77 ];
platforms = platforms.unix;
platforms = python.meta.platforms;
};
}

0 comments on commit e4980d9

Please sign in to comment.