1 { lib, stdenv, fetchFromGitHub, python3, installShellFiles }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
11 sha256 = "sha256-D5FUhv1moQKzcLj/3VWJNs24jTXJir1dMpv59orPTtc=";
14 nativeBuildInputs = [ installShellFiles ];
16 buildInputs = [ python3 ];
18 makeFlags = [ "PREFIX=$(out)" ];
21 installShellCompletion --bash --name ddgr.bash auto-completion/bash/ddgr-completion.bash
22 installShellCompletion --fish auto-completion/fish/ddgr.fish
23 installShellCompletion --zsh auto-completion/zsh/_ddgr
27 homepage = "https://github.com/jarun/ddgr";
28 description = "Search DuckDuckGo from the terminal";
29 license = licenses.gpl3;
30 maintainers = with maintainers; [ ceedubs markus1189 ];
31 platforms = python3.meta.platforms;