From 0efd891eeb649d4b6b6837df608e05905bb4cb9b Mon Sep 17 00:00:00 2001 From: figsoda Date: Thu, 2 Feb 2023 11:49:12 -0500 Subject: [PATCH] oha: 0.5.5 -> 0.5.6 Diff: https://github.com/hatoo/oha/compare/v0.5.5...v0.5.6 Changelog: https://github.com/hatoo/oha/blob/v0.5.6/CHANGELOG.md --- pkgs/tools/networking/oha/default.nix | 31 ++++++++++++++++----------- pkgs/top-level/all-packages.nix | 4 +--- 2 files changed, 20 insertions(+), 15 deletions(-) diff --git a/pkgs/tools/networking/oha/default.nix b/pkgs/tools/networking/oha/default.nix index e81eb7b0a448..62e30f93992e 100644 --- a/pkgs/tools/networking/oha/default.nix +++ b/pkgs/tools/networking/oha/default.nix @@ -1,27 +1,34 @@ -{ fetchFromGitHub, lib, pkg-config, rustPlatform, stdenv, openssl, Security }: +{ lib +, rustPlatform +, fetchFromGitHub +, stdenv +, pkg-config +, openssl +, darwin +}: rustPlatform.buildRustPackage rec { pname = "oha"; - version = "0.5.5"; + version = "0.5.6"; src = fetchFromGitHub { owner = "hatoo"; repo = pname; rev = "refs/tags/v${version}"; - sha256 = "sha256-NSre4OHzREVM8y9njMkS/whQ0+Ed+R+cLYfRWKmhA98="; + sha256 = "sha256-0Z8+dpZs0KMknyuw4Brkr8UosTDk75Kvy6zA/d91xgE="; }; - cargoSha256 = "sha256-GPP2eespnxDQoKZkqoPXEthRKk84szFl0LNTeqJQLNs="; + cargoSha256 = "sha256-isrfxnZbkIqQJ+jipYXvl1QgQ6hwRMdGA1kKFM1saDQ="; - nativeBuildInputs = lib.optional stdenv.isLinux pkg-config; + nativeBuildInputs = lib.optionals stdenv.isLinux [ + pkg-config + ]; - buildInputs = lib.optional stdenv.isLinux openssl - ++ lib.optional stdenv.isDarwin Security; - - # remove cargo config so it can find the linker - postPatch = '' - rm .cargo/config.toml - ''; + buildInputs = lib.optionals stdenv.isLinux [ + openssl + ] ++ lib.optionals stdenv.isDarwin [ + darwin.apple_sdk.frameworks.Security + ]; # tests don't work inside the sandbox doCheck = false; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index efa2f0dfe55a..386ceb9b6aa5 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -10294,9 +10294,7 @@ with pkgs; inherit (darwin.apple_sdk.frameworks) Security; }; - oha = callPackage ../tools/networking/oha { - inherit (darwin.apple_sdk.frameworks) Security; - }; + oha = callPackage ../tools/networking/oha { }; onetun = callPackage ../tools/networking/onetun { inherit (darwin.apple_sdk.frameworks) Security;