2020-08-26 14:10:09 +01:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, rustPlatform
|
|
|
|
, pkg-config
|
|
|
|
, ncurses6
|
|
|
|
, openssl
|
|
|
|
, sqlite
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "ncgopher";
|
2021-02-16 09:35:18 +00:00
|
|
|
version = "0.2.0";
|
2020-08-26 14:10:09 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jansc";
|
|
|
|
repo = "ncgopher";
|
|
|
|
rev = "v${version}";
|
2021-02-16 09:35:18 +00:00
|
|
|
sha256 = "sha256-Yny5zZe5x7/pWda839HcFkHFuL/jl1Q7ykTZzKy871I=";
|
2020-08-26 14:10:09 +01:00
|
|
|
};
|
|
|
|
|
2021-02-16 09:35:18 +00:00
|
|
|
cargoSha256 = "sha256-IsRaDhnRamMSbtXG1r1j0jZYjFiSjRdwOaUVyqy4ZJw=";
|
2020-08-27 11:16:58 +01:00
|
|
|
|
2020-08-26 14:10:09 +01:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = [
|
2020-08-27 11:16:58 +01:00
|
|
|
ncurses6
|
2020-08-26 14:10:09 +01:00
|
|
|
openssl
|
|
|
|
sqlite
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A gopher and gemini client for the modern internet";
|
|
|
|
homepage = "https://github.com/jansc/ncgopher";
|
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = with maintainers; [ shamilton ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|