3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/tools/so/default.nix
2021-02-06 19:15:45 +00:00

28 lines
750 B
Nix

{ lib, stdenv, rustPlatform, fetchFromGitHub, openssl, pkg-config, libiconv, Security }:
rustPlatform.buildRustPackage rec {
pname = "so";
version = "0.4.3";
src = fetchFromGitHub {
owner = "samtay";
repo = pname;
rev = "v${version}";
sha256 = "sha256-WAUPB4hhvroE1/8nQcgLVWgGyXcFh7qxdFg6UtQzM9A=";
};
cargoSha256 = "sha256-wt6ClN9fpEAETk3kYeQRieTXnZQe4JEnQiA8CG4ZLog=";
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 ];
};
}