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