Unverified Commit a3bcbb0b authored by misuzu's avatar misuzu Committed by GitHub
Browse files

xmrig: move to pkgs/by-name, use new apple sdk pattern (#370297)

parents f9f5325a 6f2ff58e
Loading
Loading
Loading
Loading
+5 −14
Original line number Diff line number Diff line
@@ -6,12 +6,8 @@
  libuv,
  libmicrohttpd,
  openssl,
  darwin,
}:

let
  inherit (darwin.apple_sdk_11_0.frameworks) CoreServices IOKit;
in
stdenv.mkDerivation rec {
  pname = "xmrig-proxy";
  version = "6.22.0";
@@ -35,15 +31,10 @@ stdenv.mkDerivation rec {
    cmake
  ];

  buildInputs =
    [
  buildInputs = [
    libuv
    libmicrohttpd
    openssl
    ]
    ++ lib.optionals stdenv.hostPlatform.isDarwin [
      CoreServices
      IOKit
  ];

  installPhase = ''
+0 −8
Original line number Diff line number Diff line
@@ -7,12 +7,8 @@
, openssl
, hwloc
, donateLevel ? 0
, darwin
}:

let
  inherit (darwin.apple_sdk_11_0.frameworks) Carbon CoreServices OpenCL;
in
stdenv.mkDerivation rec {
  pname = "xmrig";
  version = "6.22.2";
@@ -43,10 +39,6 @@ stdenv.mkDerivation rec {
    libmicrohttpd
    openssl
    hwloc
  ] ++ lib.optionals stdenv.hostPlatform.isDarwin [
    Carbon
    CoreServices
    OpenCL
  ];

  inherit donateLevel;
+0 −6
Original line number Diff line number Diff line
@@ -14594,12 +14594,6 @@ with pkgs;
    inherit (darwin.apple_sdk.frameworks) CoreServices;
  };
  xmrig = darwin.apple_sdk_11_0.callPackage ../applications/misc/xmrig { };
  xmrig-mo = darwin.apple_sdk_11_0.callPackage ../applications/misc/xmrig/moneroocean.nix { };
  xmrig-proxy = darwin.apple_sdk_11_0.callPackage ../applications/misc/xmrig/proxy.nix { };
  monotone = callPackage ../applications/version-management/monotone {
    lua = lua5;
  };