2018-04-21 18:33:13 +01:00
|
|
|
{ fetchurl, stdenv, dpkg, makeWrapper, fontconfig, freetype, openssl, xorg, xkeyboard_config }:
|
|
|
|
|
2019-08-13 22:52:01 +01:00
|
|
|
stdenv.mkDerivation {
|
2018-04-21 18:33:13 +01:00
|
|
|
version = "8.1";
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "minergate";
|
2018-04-21 18:33:13 +01:00
|
|
|
src = fetchurl {
|
2018-05-03 06:58:11 +01:00
|
|
|
url = "https://minergate.com/download/ubuntu";
|
2018-04-21 18:33:13 +01:00
|
|
|
sha256 = "1dbbbb8e0735cde239fca9e82c096dcc882f6cecda20bba7c14720a614c16e13";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ dpkg makeWrapper ];
|
|
|
|
|
|
|
|
phases = [ "installPhase" ];
|
|
|
|
|
|
|
|
installPhase = ''
|
2018-05-03 06:58:11 +01:00
|
|
|
dpkg-deb -x $src $out
|
2018-04-21 18:33:13 +01:00
|
|
|
pgm=$out/opt/minergate/minergate
|
|
|
|
|
|
|
|
interpreter=${stdenv.glibc}/lib/ld-linux-x86-64.so.2
|
|
|
|
patchelf --set-interpreter "$interpreter" $pgm
|
2018-05-03 06:58:11 +01:00
|
|
|
|
2018-04-21 18:33:13 +01:00
|
|
|
wrapProgram $pgm --prefix LD_LIBRARY_PATH : ${stdenv.lib.makeLibraryPath [ fontconfig freetype openssl stdenv.cc.cc xorg.libX11 xorg.libxcb ]} --prefix "QT_XKB_CONFIG_ROOT" ":" "${xkeyboard_config}/share/X11/xkb"
|
|
|
|
|
|
|
|
rm $out/usr/bin/minergate
|
|
|
|
mkdir -p $out/bin
|
|
|
|
ln -s $out/opt/minergate/minergate $out/bin
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Minergate CPU/GPU mining software";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://www.minergate.com/";
|
2018-04-21 18:33:13 +01:00
|
|
|
license = licenses.unfree;
|
|
|
|
maintainers = with maintainers; [ bfortz ];
|
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
};
|
2018-05-03 06:58:11 +01:00
|
|
|
}
|