2021-01-11 07:54:33 +00:00
|
|
|
{ fetchurl, lib, stdenv, dpkg, makeWrapper, openssl }:
|
2018-05-28 20:44:56 +01:00
|
|
|
|
2019-08-13 22:52:01 +01:00
|
|
|
stdenv.mkDerivation {
|
2018-05-28 20:44:56 +01:00
|
|
|
version = "8.2";
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "minergate-cli";
|
2018-05-28 20:44:56 +01:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://minergate.com/download/ubuntu-cli";
|
|
|
|
sha256 = "393c5ba236f6f92c449496fcda9509f4bfd3887422df98ffa59b3072124a99d8";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ dpkg makeWrapper ];
|
|
|
|
|
|
|
|
phases = [ "installPhase" ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
dpkg-deb -x $src $out
|
|
|
|
pgm=$out/opt/minergate-cli/minergate-cli
|
|
|
|
|
|
|
|
interpreter=${stdenv.glibc}/lib/ld-linux-x86-64.so.2
|
|
|
|
patchelf --set-interpreter "$interpreter" $pgm
|
|
|
|
|
2021-01-15 05:42:41 +00:00
|
|
|
wrapProgram $pgm --prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ openssl stdenv.cc.cc ]}
|
2018-05-28 20:44:56 +01:00
|
|
|
|
|
|
|
rm $out/usr/bin/minergate-cli
|
|
|
|
mkdir -p $out/bin
|
|
|
|
ln -s $pgm $out/bin
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-05-28 20:44:56 +01:00
|
|
|
description = "Minergate CPU/GPU console client mining software";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://www.minergate.com/";
|
2018-05-28 20:44:56 +01:00
|
|
|
license = licenses.unfree;
|
|
|
|
maintainers = with maintainers; [ bfortz ];
|
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
};
|
|
|
|
}
|