3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/tools/so/default.nix

28 lines
752 B
Nix
Raw Normal View History

{ lib, stdenv, rustPlatform, fetchFromGitHub, openssl, pkg-config, libiconv, Security }:
2020-08-28 13:56:32 +01:00
rustPlatform.buildRustPackage rec {
pname = "so";
version = "0.4.2";
src = fetchFromGitHub {
owner = "samtay";
repo = pname;
rev = "v${version}";
sha256 = "09zswxxli9f5ayjwmvqhkp1yv2s4f435dcfp4cyia1zddbrh2zck";
};
cargoSha256 = "1ddbhy1plag4ckbmlyj47wnky7vgmfa68msl3hl25h1lwmzaf1aq";
nativeBuildInputs = [ pkg-config ];
buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [
2020-08-28 13:56:32 +01:00
libiconv Security
];
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 ];
};
}