Merge pull request #214675 from wegank/xmrig-proxy-darwin

xmrig-proxy: 6.18.0 -> 6.19.0

authored by Weijia Wang and committed by GitHub 583cc824 d528d7c8

+36 -9
+35 -8
pkgs/applications/misc/xmrig/proxy.nix
··· 1 - { stdenv, lib, fetchFromGitHub, cmake, libuv, libmicrohttpd, openssl 1 + { stdenv 2 + , lib 3 + , fetchFromGitHub 4 + , cmake 5 + , libuv 6 + , libmicrohttpd 7 + , openssl 8 + , darwin 2 9 }: 3 10 11 + let 12 + inherit (darwin.apple_sdk_11_0.frameworks) CoreServices IOKit; 13 + in 4 14 stdenv.mkDerivation rec { 5 15 pname = "xmrig-proxy"; 6 - version = "6.18.0"; 16 + version = "6.19.0"; 7 17 8 18 src = fetchFromGitHub { 9 19 owner = "xmrig"; 10 20 repo = "xmrig-proxy"; 11 21 rev = "v${version}"; 12 - sha256 = "sha256-3Tp0wTL3uHs0N4CdlNusvpuam653b6qUZu9/KBT4HOM="; 22 + hash = "sha256-0vmRwe7PQVifm6HxgpPno9mIFcBZFtxqNdDK4V637ds="; 13 23 }; 14 24 15 - nativeBuildInputs = [ cmake ]; 16 - buildInputs = [ libuv libmicrohttpd openssl ]; 17 - 18 25 postPatch = '' 19 - # Link dynamically against libuuid instead of statically 20 - substituteInPlace CMakeLists.txt --replace uuid.a uuid 26 + # Link dynamically against libraries instead of statically 27 + substituteInPlace CMakeLists.txt \ 28 + --replace uuid.a uuid 29 + substituteInPlace cmake/OpenSSL.cmake \ 30 + --replace "set(OPENSSL_USE_STATIC_LIBS TRUE)" "set(OPENSSL_USE_STATIC_LIBS FALSE)" 21 31 ''; 22 32 33 + nativeBuildInputs = [ 34 + cmake 35 + ]; 36 + 37 + buildInputs = [ 38 + libuv 39 + libmicrohttpd 40 + openssl 41 + ] ++ lib.optionals stdenv.isDarwin [ 42 + CoreServices 43 + IOKit 44 + ]; 45 + 23 46 installPhase = '' 47 + runHook preInstall 48 + 24 49 install -vD xmrig-proxy $out/bin/xmrig-proxy 50 + 51 + runHook postInstall 25 52 ''; 26 53 27 54 meta = with lib; {
+1 -1
pkgs/top-level/all-packages.nix
··· 31243 31243 31244 31244 xmrig-mo = callPackage ../applications/misc/xmrig/moneroocean.nix { }; 31245 31245 31246 - xmrig-proxy = callPackage ../applications/misc/xmrig/proxy.nix { }; 31246 + xmrig-proxy = darwin.apple_sdk_11_0.callPackage ../applications/misc/xmrig/proxy.nix { }; 31247 31247 31248 31248 molot-lite = callPackage ../applications/audio/molot-lite { }; 31249 31249