@@ -0,0 +1,38 @@
1+{ lib
2+, fetchFromGitHub
3+, rustPlatform
4+, pkg-config
5+, ncurses6
6+, openssl
7+, sqlite
8+}:
9+
10+rustPlatform.buildRustPackage rec {
11+ pname = "ncgopher";
12+ version = "0.1.5";
13+
14+ src = fetchFromGitHub {
15+ owner = "jansc";
16+ repo = "ncgopher";
17+ rev = "v${version}";
18+ sha256 = "1mv89sanmr49b9za95jl5slpq960b246j2054r8xfafzqmbp44af";
19+ };
20+
21+ cargoSha256 = "12r4vgrg2bkr3p61yxcsg02kppg84vn956l0v1vb08i94rxzc8zk";
22+ verifyCargoDeps = true;
23+
24+ nativeBuildInputs = [ pkg-config ];
25+ buildInputs = [
26+ (lib.getDev ncurses6)
27+ openssl
28+ sqlite
29+ ];
30+
31+ meta = with lib; {
32+ description = "A gopher and gemini client for the modern internet";
33+ homepage = "https://github.com/jansc/ncgopher";
34+ license = licenses.bsd2;
35+ maintainers = with maintainers; [ shamilton ];
36+ platforms = platforms.linux;
37+ };
38+}