1{ lib, stdenv, rustPlatform, fetchFromGitHub, openssl, pkg-config, libiconv, Security }:
2
3rustPlatform.buildRustPackage rec {
4 pname = "so";
5 version = "0.4.9";
6
7 src = fetchFromGitHub {
8 owner = "samtay";
9 repo = pname;
10 rev = "v${version}";
11 sha256 = "sha256-4IZNOclQj3ZLE6WRddn99CrV8OoyfkRBXnA4oEyMxv8=";
12 };
13
14 cargoSha256 = "sha256-hHXA/n/HQeBaD4QZ2b6Okw66poBRwNTpQWF0qBhLp/o=";
15
16 nativeBuildInputs = [ pkg-config ];
17 buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [
18 libiconv Security
19 ];
20
21 meta = with lib; {
22 description = "A TUI interface to the StackExchange network";
23 homepage = "https://github.com/samtay/so";
24 license = licenses.mit;
25 maintainers = with maintainers; [ mredaelli ];
26 };
27}