2021-03-13 11:33:02 +00:00
|
|
|
{ lib, stdenv, rustPlatform, fetchFromSourcehut, pkg-config, ncurses, openssl, Security }:
|
2020-06-25 00:59:23 +01:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "asuka";
|
2020-07-19 22:19:32 +01:00
|
|
|
version = "0.8.1";
|
2020-06-25 00:59:23 +01:00
|
|
|
|
2021-03-13 11:33:02 +00:00
|
|
|
src = fetchFromSourcehut {
|
|
|
|
owner = "~julienxx";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
sha256 = "1y8v4qc5dng3v9k0bky1xlf3qi9pk2vdsi29lff4ha5310467f0k";
|
2020-06-25 00:59:23 +01:00
|
|
|
};
|
|
|
|
|
2020-07-19 22:19:32 +01:00
|
|
|
cargoSha256 = "0p0x4ch04kydg76bfal5zqzr9hvn5268wf3k2v9h7g8r4y8xqlhw";
|
2020-06-25 00:59:23 +01:00
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2020-06-25 00:59:23 +01:00
|
|
|
|
|
|
|
buildInputs = [ ncurses openssl ]
|
2021-01-15 13:21:58 +00:00
|
|
|
++ lib.optional stdenv.isDarwin Security;
|
2020-06-25 00:59:23 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-06-25 00:59:23 +01: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 ];
|
|
|
|
};
|
|
|
|
}
|