forgejo-lts: 7.0.10 -> 7.0.11
[NixPkgs.git] / pkgs / by-name / te / telescope / package.nix
blob801cae0b123c53a186b0f9762b8f9d78009517fc
1 { stdenv
2 , lib
3 , fetchFromGitHub
4 , pkg-config
5 , bison
6 , libevent
7 , libgrapheme
8 , libressl
9 , ncurses
10 , autoreconfHook
11 , buildPackages
12 , memstreamHook
15 stdenv.mkDerivation rec {
16   pname = "telescope";
17   version = "0.10.1";
19   src = fetchFromGitHub {
20     owner = "omar-polo";
21     repo = pname;
22     rev = version;
23     hash = "sha256-MVZ/pvDAETacQiEMEXM0gYM20LXqNiHtMfFGqS1vipY=";
24   };
26   postPatch = ''
27     # Remove bundled libraries
28     rm -r libgrapheme
29   '';
31   nativeBuildInputs = [
32     autoreconfHook
33     pkg-config
34     bison
35   ];
37   buildInputs = [
38     libevent
39     libgrapheme
40     libressl
41     ncurses
42   ] ++ lib.optional stdenv.hostPlatform.isDarwin memstreamHook;
44   configureFlags = [
45     "HOSTCC=${buildPackages.stdenv.cc}/bin/${buildPackages.stdenv.cc.targetPrefix}cc"
46   ];
48   meta = with lib; {
49     description = "Telescope is a w3m-like browser for Gemini";
50     homepage = "https://www.telescope-browser.org/";
51     license = licenses.isc;
52     maintainers = with maintainers; [ heph2 ];
53     platforms = platforms.unix;
54   };