1 { lib, stdenv, fetchurl }:
5 if stdenv.hostPlatform.system == "x86_64-linux" then "x64"
6 else if stdenv.hostPlatform.system == "i686-linux" then "x86"
8 throwSystem = throw "Unsupported system: ${stdenv.hostPlatform.system}";
10 if stdenv.hostPlatform.system == "x86_64-linux" then "0zy0jzvdqccfsg42m2lq1rj8r2c4iypd1h9vxl9824cbl92yim37"
11 else if stdenv.hostPlatform.system == "i686-linux" then "03ml9xv19km99f0z7fpr21b1zkxvw7q39kjzd8wpb2pds51wnc62"
13 libraries = lib.makeLibraryPath [ stdenv.cc.cc ];
15 in stdenv.mkDerivation rec {
16 pname = "logmein-hamachi";
17 version = "2.1.0.203";
20 url = "https://vpn.net/installers/${pname}-${version}-${arch}.tgz";
26 --set-interpreter $(cat ${stdenv.cc}/nix-support/dynamic-linker) \
27 --set-rpath ${libraries} \
29 install -D -m755 hamachid $out/bin/hamachid
30 ln -s $out/bin/hamachid $out/bin/hamachi
37 description = "A hosted VPN service that lets you securely extend LAN-like networks to distributed teams";
38 homepage = "https://secure.logmein.com/products/hamachi/";
39 sourceProvenance = with sourceTypes; [ binaryNativeCode ];
40 license = licenses.unfreeRedistributable;
41 maintainers = with maintainers; [ abbradar ];
42 platforms = platforms.linux;