mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-01 02:23:54 +00:00
4f0dadbf38
After final improvements to the official formatter implementation, this commit now performs the first treewide reformat of Nix files using it. This is part of the implementation of RFC 166. Only "inactive" files are reformatted, meaning only files that aren't being touched by any PR with activity in the past 2 months. This is to avoid conflicts for PRs that might soon be merged. Later we can do a full treewide reformat to get the rest, which should not cause as many conflicts. A CI check has already been running for some time to ensure that new and already-formatted files are formatted, so the files being reformatted here should also stay formatted. This commit was automatically created and can be verified using nix-builda08b3a4d19
.tar.gz \ --argstr baseRevb32a094368
result/bin/apply-formatting $NIXPKGS_PATH
57 lines
1.6 KiB
Nix
57 lines
1.6 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchurl,
|
|
}:
|
|
|
|
let
|
|
arch =
|
|
if stdenv.hostPlatform.system == "x86_64-linux" then
|
|
"x64"
|
|
else if stdenv.hostPlatform.system == "i686-linux" then
|
|
"x86"
|
|
else
|
|
throwSystem;
|
|
throwSystem = throw "Unsupported system: ${stdenv.hostPlatform.system}";
|
|
sha256 =
|
|
if stdenv.hostPlatform.system == "x86_64-linux" then
|
|
"0zy0jzvdqccfsg42m2lq1rj8r2c4iypd1h9vxl9824cbl92yim37"
|
|
else if stdenv.hostPlatform.system == "i686-linux" then
|
|
"03ml9xv19km99f0z7fpr21b1zkxvw7q39kjzd8wpb2pds51wnc62"
|
|
else
|
|
throwSystem;
|
|
libraries = lib.makeLibraryPath [ stdenv.cc.cc ];
|
|
|
|
in
|
|
stdenv.mkDerivation rec {
|
|
pname = "logmein-hamachi";
|
|
version = "2.1.0.203";
|
|
|
|
src = fetchurl {
|
|
url = "https://vpn.net/installers/${pname}-${version}-${arch}.tgz";
|
|
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;
|
|
|
|
meta = with lib; {
|
|
description = "Hosted VPN service that lets you securely extend LAN-like networks to distributed teams";
|
|
homepage = "https://secure.logmein.com/products/hamachi/";
|
|
changelog = "https://support.logmeininc.com/central/help/whats-new-in-hamachi";
|
|
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
|
|
license = licenses.unfreeRedistributable;
|
|
maintainers = with maintainers; [ abbradar ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|