uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
38
pkgs/applications/misc/xmrig/default.nix
Normal file
38
pkgs/applications/misc/xmrig/default.nix
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
{ stdenv, lib, fetchFromGitHub, cmake, libuv, libmicrohttpd, openssl, hwloc
|
||||
, donateLevel ? 0
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "xmrig";
|
||||
version = "6.17.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "xmrig";
|
||||
repo = "xmrig";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-K8mN3Wzlay2Qgoo70mu3Bh4lXUXNDpXYt17aNnwWkIc=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cmake ];
|
||||
buildInputs = [ libuv libmicrohttpd openssl hwloc ];
|
||||
|
||||
inherit donateLevel;
|
||||
|
||||
patches = [ ./donate-level.patch ];
|
||||
postPatch = ''
|
||||
substituteAllInPlace src/donate.h
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
install -vD xmrig $out/bin/xmrig
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
broken = stdenv.isDarwin;
|
||||
description = "Monero (XMR) CPU miner";
|
||||
homepage = "https://github.com/xmrig/xmrig";
|
||||
license = licenses.gpl3Plus;
|
||||
platforms = [ "x86_64-linux" "x86_64-darwin" ];
|
||||
maintainers = with maintainers; [ fpletz kim0 ];
|
||||
};
|
||||
}
|
||||
12
pkgs/applications/misc/xmrig/donate-level.patch
Normal file
12
pkgs/applications/misc/xmrig/donate-level.patch
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
diff --git a/src/donate.h b/src/donate.h
|
||||
--- a/src/donate.h
|
||||
+++ b/src/donate.h
|
||||
@@ -46,6 +46,6 @@
|
||||
*/
|
||||
-constexpr const int kDefaultDonateLevel = 1;
|
||||
-constexpr const int kMinimumDonateLevel = 1;
|
||||
+constexpr const int kDefaultDonateLevel = @donateLevel@;
|
||||
+constexpr const int kMinimumDonateLevel = @donateLevel@;
|
||||
|
||||
|
||||
#endif /* XMRIG_DONATE_H */
|
||||
22
pkgs/applications/misc/xmrig/moneroocean.nix
Normal file
22
pkgs/applications/misc/xmrig/moneroocean.nix
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
{ stdenv, fetchFromGitHub, lib, xmrig }:
|
||||
|
||||
xmrig.overrideAttrs (oldAttrs: rec {
|
||||
pname = "xmrig-mo";
|
||||
version = "6.16.5-mo1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "MoneroOcean";
|
||||
repo = "xmrig";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-TNiHvRLS+eAPHa+qbnVSAyWTPGJxdp9eheQamd4i24E=";
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
broken = stdenv.isDarwin;
|
||||
description = "A fork of the XMRig CPU miner with support for algorithm switching";
|
||||
homepage = "https://github.com/MoneroOcean/xmrig";
|
||||
license = licenses.gpl3Plus;
|
||||
platforms = [ "x86_64-linux" "x86_64-darwin" ];
|
||||
maintainers = with maintainers; [ j0hax ];
|
||||
};
|
||||
})
|
||||
34
pkgs/applications/misc/xmrig/proxy.nix
Normal file
34
pkgs/applications/misc/xmrig/proxy.nix
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
{ stdenv, lib, fetchFromGitHub, cmake, libuv, libmicrohttpd, openssl
|
||||
, donateLevel ? 0
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "xmrig-proxy";
|
||||
version = "6.15.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "xmrig";
|
||||
repo = "xmrig-proxy";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-VbHymVc/swrRaEBqvYlCEVjYeU0ii9oSr+b6q0hlCaQ=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cmake ];
|
||||
buildInputs = [ libuv libmicrohttpd openssl ];
|
||||
|
||||
postPatch = ''
|
||||
# Link dynamically against libuuid instead of statically
|
||||
substituteInPlace CMakeLists.txt --replace uuid.a uuid
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
install -vD xmrig-proxy $out/bin/xmrig-proxy
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Monero (XMR) Stratum protocol proxy";
|
||||
homepage = "https://github.com/xmrig/xmrig-proxy";
|
||||
license = licenses.gpl3Plus;
|
||||
maintainers = with maintainers; [ aij ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue