nixpkgs/pkgs/by-name/te/telescope/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

56 lines
1023 B
Nix
Raw Normal View History

2021-07-19 10:54:10 +00:00
{ stdenv
, lib
2021-09-04 09:14:35 +00:00
, fetchFromGitHub
2021-07-19 10:54:10 +00:00
, pkg-config
, bison
, libevent
2024-02-23 19:13:00 +00:00
, libgrapheme
2021-07-19 10:54:10 +00:00
, libressl
, ncurses
2021-09-04 09:14:35 +00:00
, autoreconfHook
2021-11-29 17:04:49 +00:00
, buildPackages
2022-05-25 16:49:27 +00:00
, memstreamHook
2021-07-19 10:54:10 +00:00
}:
stdenv.mkDerivation rec {
pname = "telescope";
2024-06-28 02:57:26 +00:00
version = "0.10";
2021-07-19 10:54:10 +00:00
2021-09-04 09:14:35 +00:00
src = fetchFromGitHub {
owner = "omar-polo";
repo = pname;
rev = version;
2024-06-28 02:57:26 +00:00
hash = "sha256-hkXXM/I7sNFomWamT0q1JH62arX1hFbt68Axcijadug=";
2021-07-19 10:54:10 +00:00
};
2024-02-23 19:13:00 +00:00
postPatch = ''
# Remove bundled libraries
rm -r libgrapheme
'';
2021-07-19 10:54:10 +00:00
nativeBuildInputs = [
2021-09-04 09:14:35 +00:00
autoreconfHook
2021-07-19 10:54:10 +00:00
pkg-config
bison
];
buildInputs = [
libevent
2024-02-23 19:13:00 +00:00
libgrapheme
2021-07-19 10:54:10 +00:00
libressl
ncurses
2022-05-25 16:49:27 +00:00
] ++ lib.optional stdenv.isDarwin memstreamHook;
2021-07-19 10:54:10 +00:00
2021-11-29 17:04:49 +00:00
configureFlags = [
"HOSTCC=${buildPackages.stdenv.cc}/bin/${buildPackages.stdenv.cc.targetPrefix}cc"
];
2021-07-19 10:54:10 +00:00
meta = with lib; {
description = "Telescope is a w3m-like browser for Gemini";
homepage = "https://www.telescope-browser.org/";
2021-07-19 10:54:10 +00:00
license = licenses.isc;
maintainers = with maintainers; [ heph2 ];
platforms = platforms.unix;
};
}