nixpkgs/pkgs/development/tools/so/default.nix
2022-08-24 00:59:48 +00:00

28 lines
750 B
Nix

{ lib, stdenv, rustPlatform, fetchFromGitHub, openssl, pkg-config, libiconv, Security }:
rustPlatform.buildRustPackage rec {
pname = "so";
version = "0.4.8";
src = fetchFromGitHub {
owner = "samtay";
repo = pname;
rev = "v${version}";
sha256 = "sha256-LVhYcxXhjFNtmGKapZrmN/5PxCZO6RF9/Wqavg5JLFg=";
};
cargoSha256 = "sha256-b+ftdRreGS2weVeZF9zZjkNX28qh+WC6TcMhTumFU3g=";
nativeBuildInputs = [ pkg-config ];
buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [
libiconv Security
];
meta = with lib; {
description = "A TUI interface to the StackExchange network";
homepage = "https://github.com/samtay/so";
license = licenses.mit;
maintainers = with maintainers; [ mredaelli ];
};
}