2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, rustPlatform, fetchFromGitHub, openssl, pkg-config, libiconv, Security }:
|
2020-08-28 14:56:32 +02:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "so";
|
2021-08-18 02:55:17 +02:00
|
|
|
version = "0.4.5";
|
2020-08-28 14:56:32 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "samtay";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-08-18 02:55:17 +02:00
|
|
|
sha256 = "sha256-KiIffq8olpNpynmV4lwdY0yu2ch4MAwp5VspfLZtkf4=";
|
2020-08-28 14:56:32 +02:00
|
|
|
};
|
|
|
|
|
2021-08-18 02:55:17 +02:00
|
|
|
cargoSha256 = "sha256-VBuWKit50cSHYg7WzUP5ein3MEoZN/KFfm+YEEu544Q=";
|
2020-08-28 14:56:32 +02:00
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2021-01-23 13:26:19 +01:00
|
|
|
buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [
|
2020-08-28 14:56:32 +02:00
|
|
|
libiconv Security
|
|
|
|
];
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-08-28 14:56:32 +02:00
|
|
|
description = "A TUI interface to the StackExchange network";
|
|
|
|
homepage = "https://github.com/samtay/so";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ mredaelli ];
|
|
|
|
};
|
|
|
|
}
|