2019-12-05 21:28:16 +00:00
|
|
|
{ stdenv, fetchFromGitHub, python }:
|
2017-10-01 21:56:38 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "googler";
|
2019-12-05 21:28:16 +00:00
|
|
|
version = "4.0";
|
2017-10-01 21:56:38 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jarun";
|
2019-12-05 21:28:16 +00:00
|
|
|
repo = pname;
|
2017-10-01 21:56:38 +01:00
|
|
|
rev = "v${version}";
|
2019-12-05 21:28:16 +00:00
|
|
|
sha256 = "13jj15ph0vmbyxjslzl6z4h5b7wyllvhwgsrb6zf7qlkcmkd4vwy";
|
2017-10-01 21:56:38 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ python ];
|
|
|
|
|
2019-10-27 13:03:25 +00:00
|
|
|
makeFlags = [ "PREFIX=$(out)" ];
|
2017-10-01 21:56:38 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2019-12-05 21:28:16 +00:00
|
|
|
homepage = "https://github.com/jarun/googler";
|
2017-10-01 21:56:38 +01:00
|
|
|
description = "Google Search, Google Site Search, Google News from the terminal";
|
|
|
|
license = licenses.gpl3;
|
2019-12-05 21:28:49 +00:00
|
|
|
maintainers = with maintainers; [ koral filalex77 ];
|
2017-10-01 21:56:38 +01:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|