diff options
author | Bernard Fortz <bernard.fortz@gmail.com> | 2018-05-28 15:44:56 -0400 |
---|---|---|
committer | xeji <36407913+xeji@users.noreply.github.com> | 2018-05-28 21:44:56 +0200 |
commit | 9317c05cb388190b1764e520722b7f526ff4cd5e (patch) | |
tree | 5331f0c9e73f6bba76e231314796c6f66c88886c /pkgs/applications/misc/minergate-cli | |
parent | de897baceae1783e50bb47d7bdd3396b36c58cdd (diff) |
minergate-cli: init at 8.2 (#41143)
Diffstat (limited to 'pkgs/applications/misc/minergate-cli')
-rw-r--r-- | pkgs/applications/misc/minergate-cli/default.nix | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/applications/misc/minergate-cli/default.nix b/pkgs/applications/misc/minergate-cli/default.nix new file mode 100644 index 0000000000000..6aa7eea3d7e91 --- /dev/null +++ b/pkgs/applications/misc/minergate-cli/default.nix @@ -0,0 +1,36 @@ +{ fetchurl, stdenv, dpkg, makeWrapper, openssl }: + +stdenv.mkDerivation rec { + version = "8.2"; + name = "minergate-cli-${version}"; + 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 + + wrapProgram $pgm --prefix LD_LIBRARY_PATH : ${stdenv.lib.makeLibraryPath [ openssl stdenv.cc.cc ]} + + rm $out/usr/bin/minergate-cli + mkdir -p $out/bin + ln -s $pgm $out/bin + ''; + + meta = with stdenv.lib; { + description = "Minergate CPU/GPU console client mining software"; + homepage = https://www.minergate.com/; + license = licenses.unfree; + maintainers = with maintainers; [ bfortz ]; + platforms = [ "x86_64-linux" ]; +}; +} |