termscp: 0.9.0 -> 0.10.0

This commit is contained in:
zendo 2022-10-27 09:40:09 +08:00
parent f8fae712ca
commit 1713bda2bf

View file

@ -1,7 +1,6 @@
{ lib { lib
, dbus , dbus
, fetchFromGitHub , fetchFromGitHub
, libssh
, openssl , openssl
, pkg-config , pkg-config
, rustPlatform , rustPlatform
@ -14,16 +13,16 @@
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "termscp"; pname = "termscp";
version = "0.9.0"; version = "0.10.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "veeso"; owner = "veeso";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-iazp3Qx2AivuL+S1Ma/64BLJtE46tc33dq5qsgw+a6Q="; hash = "sha256-AyDENQj73HzNh1moO/KJl7OG80w65XiYmIl8d9/iAtE=";
}; };
cargoSha256 = "sha256-FBW3Hl67Efnc/sNGM1LQw6msWHCYRj3KwfmSD2lpbUc="; cargoHash = "sha256-NgBQvWtwkAvp0V7zWGw+lNAcVqqDMAeNC0KNIBrwjEE=";
nativeBuildInputs = [ nativeBuildInputs = [
pkg-config pkg-config
@ -31,7 +30,6 @@ rustPlatform.buildRustPackage rec {
buildInputs = [ buildInputs = [
dbus dbus
libssh
openssl openssl
] ++ lib.optionals stdenv.isDarwin [ ] ++ lib.optionals stdenv.isDarwin [
AppKit AppKit
@ -40,6 +38,9 @@ rustPlatform.buildRustPackage rec {
Security Security
]; ];
# Needed to get openssl-sys to use pkg-config.
OPENSSL_NO_VENDOR = 1;
NIX_CFLAGS_COMPILE = lib.optionals stdenv.isDarwin [ NIX_CFLAGS_COMPILE = lib.optionals stdenv.isDarwin [
"-framework" "AppKit" "-framework" "AppKit"
]; ];