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