summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorJörg Thalheim <Mic92@users.noreply.github.com>2020-07-31 07:06:01 +0100
committerGitHub <noreply@github.com>2020-07-31 07:06:01 +0100
commitae482bb41e24d1ff4f2241d749e75b52cba59a1d (patch)
treeaf89b7b0beb98e01661b644822ea61584b649b34 /pkgs
parentb95c871be5aa2ff2ace0fe3cd5472997bcf324ca (diff)
parente4980d99d2a7859288747944087d9ff30ad27c59 (diff)
downloadnixpkgs-ae482bb41e24d1ff4f2241d749e75b52cba59a1d.tar
nixpkgs-ae482bb41e24d1ff4f2241d749e75b52cba59a1d.tar.gz
nixpkgs-ae482bb41e24d1ff4f2241d749e75b52cba59a1d.tar.bz2
nixpkgs-ae482bb41e24d1ff4f2241d749e75b52cba59a1d.tar.lz
nixpkgs-ae482bb41e24d1ff4f2241d749e75b52cba59a1d.tar.xz
nixpkgs-ae482bb41e24d1ff4f2241d749e75b52cba59a1d.tar.zst
nixpkgs-ae482bb41e24d1ff4f2241d749e75b52cba59a1d.zip
Merge pull request #94271 from r-ryantm/auto-update/googler
googler: 4.1 -> 4.2
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/applications/misc/googler/default.nix18
1 files changed, 13 insertions, 5 deletions
diff --git a/pkgs/applications/misc/googler/default.nix b/pkgs/applications/misc/googler/default.nix
index fba36f5e8ac..de93dc6f43e 100644
--- a/pkgs/applications/misc/googler/default.nix
+++ b/pkgs/applications/misc/googler/default.nix
@@ -1,25 +1,33 @@
-{ stdenv, fetchFromGitHub, python }:
+{ stdenv, fetchFromGitHub, python, installShellFiles }:
 
 stdenv.mkDerivation rec {
   pname = "googler";
-  version = "4.1";
+  version = "4.2";
 
   src = fetchFromGitHub {
     owner = "jarun";
     repo = pname;
     rev = "v${version}";
-    sha256 = "04d7n2l159s7c9xzvyvbnbii1k3zdbajagpx09x1l692cwjbvpxw";
+    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;
   };
 }