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

This commit is contained in:
misuzu
2025-01-03 15:13:35 +02:00
committed by GitHub
5 changed files with 5 additions and 28 deletions
@@ -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,16 +31,11 @@ stdenv.mkDerivation rec {
cmake
];
buildInputs =
[
libuv
libmicrohttpd
openssl
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
CoreServices
IOKit
];
buildInputs = [
libuv
libmicrohttpd
openssl
];
installPhase = ''
runHook preInstall
@@ -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;
-6
View File
@@ -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;
};