2021-01-19 07:50:56 +01:00
|
|
|
{ lib, stdenv, rustPlatform, fetchurl, pkg-config, ncurses, openssl, Security }:
|
2020-06-25 01:59:23 +02:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "asuka";
|
2020-07-19 23:19:32 +02:00
|
|
|
version = "0.8.1";
|
2020-06-25 01:59:23 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://git.sr.ht/~julienxx/${pname}/archive/${version}.tar.gz";
|
2020-07-19 23:19:32 +02:00
|
|
|
sha256 = "07i80qmdpwfdgwrk1gzs10wln91v23qjrsk0x134xf5mjnakxc06";
|
2020-06-25 01:59:23 +02:00
|
|
|
};
|
|
|
|
|
2020-07-19 23:19:32 +02:00
|
|
|
cargoSha256 = "0p0x4ch04kydg76bfal5zqzr9hvn5268wf3k2v9h7g8r4y8xqlhw";
|
2020-06-25 01:59:23 +02:00
|
|
|
|
2021-01-19 07:50:56 +01:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2020-06-25 01:59:23 +02:00
|
|
|
|
|
|
|
buildInputs = [ ncurses openssl ]
|
2021-01-15 14:21:58 +01:00
|
|
|
++ lib.optional stdenv.isDarwin Security;
|
2020-06-25 01:59:23 +02:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-06-25 01:59:23 +02:00
|
|
|
description = "Gemini Project client written in Rust with NCurses";
|
|
|
|
homepage = "https://git.sr.ht/~julienxx/asuka";
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ sikmir ];
|
|
|
|
};
|
|
|
|
}
|