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
46
pkgs/applications/misc/xmr-stak/default.nix
Normal file
46
pkgs/applications/misc/xmr-stak/default.nix
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
{ stdenv, stdenvGcc6, lib
|
||||
, fetchFromGitHub, cmake, libmicrohttpd_0_9_70, openssl
|
||||
, opencl-headers, ocl-icd, hwloc, cudatoolkit
|
||||
, devDonationLevel ? "0.0"
|
||||
, cudaSupport ? false
|
||||
, openclSupport ? true
|
||||
}:
|
||||
|
||||
let
|
||||
stdenv' = if cudaSupport then stdenvGcc6 else stdenv;
|
||||
in
|
||||
|
||||
stdenv'.mkDerivation rec {
|
||||
pname = "xmr-stak";
|
||||
version = "2.10.8";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "fireice-uk";
|
||||
repo = "xmr-stak";
|
||||
rev = version;
|
||||
sha256 = "0ilx5mhh91ks7dwvykfyynh53l6vkkignjpwkkss8ss6b2k8gdbj";
|
||||
};
|
||||
|
||||
NIX_CFLAGS_COMPILE = "-O3";
|
||||
|
||||
cmakeFlags = lib.optional (!cudaSupport) "-DCUDA_ENABLE=OFF"
|
||||
++ lib.optional (!openclSupport) "-DOpenCL_ENABLE=OFF";
|
||||
|
||||
nativeBuildInputs = [ cmake ];
|
||||
buildInputs = [ libmicrohttpd_0_9_70 openssl hwloc ]
|
||||
++ lib.optional cudaSupport cudatoolkit
|
||||
++ lib.optionals openclSupport [ opencl-headers ocl-icd ];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace xmrstak/donate-level.hpp \
|
||||
--replace 'fDevDonationLevel = 2.0' 'fDevDonationLevel = ${devDonationLevel}'
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Unified All-in-one Monero miner";
|
||||
homepage = "https://github.com/fireice-uk/xmr-stak";
|
||||
license = licenses.gpl3Plus;
|
||||
platforms = [ "x86_64-linux" ];
|
||||
maintainers = with maintainers; [ fpletz bfortz ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue