1 { lib, stdenv, fetchFromGitHub, python, installShellFiles }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
11 sha256 = "sha256-PgWg396AQ15CAnfTXGDpSg1UXx7mNCtknEjJd/KV4MU=";
14 buildInputs = [ python ];
16 nativeBuildInputs = [ installShellFiles ];
18 makeFlags = [ "PREFIX=$(out)" ];
21 installShellCompletion --bash --name googler.bash auto-completion/bash/googler-completion.bash
22 installShellCompletion --fish auto-completion/fish/googler.fish
23 installShellCompletion --zsh auto-completion/zsh/_googler
27 homepage = "https://github.com/jarun/googler";
28 description = "Google Search, Google Site Search, Google News from the terminal";
29 license = licenses.gpl3Plus;
30 maintainers = with maintainers; [ koral Br1ght0ne ];
31 platforms = python.meta.platforms;
32 mainProgram = "googler";