2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchurl }:
|
2015-08-19 09:09:47 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
arch =
|
2018-08-20 19:11:29 +00:00
|
|
|
if stdenv.hostPlatform.system == "x86_64-linux" then "x64"
|
|
|
|
else if stdenv.hostPlatform.system == "i686-linux" then "x86"
|
2017-12-05 23:06:43 +00:00
|
|
|
else throwSystem;
|
2018-08-20 19:11:29 +00:00
|
|
|
throwSystem = throw "Unsupported system: ${stdenv.hostPlatform.system}";
|
2015-08-19 09:09:47 +00:00
|
|
|
sha256 =
|
2019-09-27 15:09:32 +00:00
|
|
|
if stdenv.hostPlatform.system == "x86_64-linux" then "0zy0jzvdqccfsg42m2lq1rj8r2c4iypd1h9vxl9824cbl92yim37"
|
2018-08-20 19:11:29 +00:00
|
|
|
else if stdenv.hostPlatform.system == "i686-linux" then "03ml9xv19km99f0z7fpr21b1zkxvw7q39kjzd8wpb2pds51wnc62"
|
2017-12-05 23:06:43 +00:00
|
|
|
else throwSystem;
|
2021-01-15 09:19:50 +00:00
|
|
|
libraries = lib.makeLibraryPath [ stdenv.cc.cc ];
|
2015-08-19 09:09:47 +00:00
|
|
|
|
|
|
|
in stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "logmein-hamachi";
|
2019-09-27 15:09:32 +00:00
|
|
|
version = "2.1.0.203";
|
2015-08-19 09:09:47 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2023-10-24 05:40:33 +00:00
|
|
|
url = "https://vpn.net/installers/${pname}-${version}-${arch}.tgz";
|
2015-08-19 09:09:47 +00:00
|
|
|
inherit sha256;
|
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
patchelf \
|
|
|
|
--set-interpreter $(cat ${stdenv.cc}/nix-support/dynamic-linker) \
|
|
|
|
--set-rpath ${libraries} \
|
|
|
|
hamachid
|
|
|
|
install -D -m755 hamachid $out/bin/hamachid
|
|
|
|
ln -s $out/bin/hamachid $out/bin/hamachi
|
|
|
|
'';
|
|
|
|
|
|
|
|
dontStrip = true;
|
|
|
|
dontPatchELF = true;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2015-08-19 09:09:47 +00:00
|
|
|
description = "A hosted VPN service that lets you securely extend LAN-like networks to distributed teams";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://secure.logmein.com/products/hamachi/";
|
2022-06-16 23:40:08 +00:00
|
|
|
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
|
2015-08-19 09:09:47 +00:00
|
|
|
license = licenses.unfreeRedistributable;
|
|
|
|
maintainers = with maintainers; [ abbradar ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|