depot/third_party/nixpkgs/pkgs/by-name/te/telescope/package.nix
Default email c7cb07f092 Project import generated by Copybara.
GitOrigin-RevId: 1536926ef5621b09bba54035ae2bb6d806d72ac8
2024-02-29 21:09:43 +01:00

55 lines
1,019 B
Nix

{ stdenv
, lib
, fetchFromGitHub
, pkg-config
, bison
, libevent
, libgrapheme
, libressl
, ncurses
, autoreconfHook
, buildPackages
, memstreamHook
}:
stdenv.mkDerivation rec {
pname = "telescope";
version = "0.9";
src = fetchFromGitHub {
owner = "omar-polo";
repo = pname;
rev = version;
hash = "sha256-eGntAAaKSwusm3e0zDXZmV9D5uX/uThPvQ5OjPNsxZ8=";
};
postPatch = ''
# Remove bundled libraries
rm -r libgrapheme
'';
nativeBuildInputs = [
autoreconfHook
pkg-config
bison
];
buildInputs = [
libevent
libgrapheme
libressl
ncurses
] ++ lib.optional stdenv.isDarwin memstreamHook;
configureFlags = [
"HOSTCC=${buildPackages.stdenv.cc}/bin/${buildPackages.stdenv.cc.targetPrefix}cc"
];
meta = with lib; {
description = "Telescope is a w3m-like browser for Gemini";
homepage = "https://telescope.omarpolo.com/";
license = licenses.isc;
maintainers = with maintainers; [ heph2 ];
platforms = platforms.unix;
};
}