@@ -0,0 +1,27 @@
1+{ stdenv, rustPlatform, fetchFromGitHub, openssl, pkg-config, libiconv, Security }:
2+
3+rustPlatform.buildRustPackage rec {
4+ pname = "so";
5+ version = "0.4.2";
6+
7+ src = fetchFromGitHub {
8+ owner = "samtay";
9+ repo = pname;
10+ rev = "v${version}";
11+ sha256 = "09zswxxli9f5ayjwmvqhkp1yv2s4f435dcfp4cyia1zddbrh2zck";
12+ };
13+
14+ cargoSha256 = "1ddbhy1plag4ckbmlyj47wnky7vgmfa68msl3hl25h1lwmzaf1aq";
15+
16+ nativeBuildInputs = [ pkg-config ];
17+ buildInputs = [ openssl ] ++ stdenv.lib.optionals stdenv.isDarwin [
18+ libiconv Security
19+ ];
20+
21+ meta = with stdenv.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+}