mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 07:53:19 +00:00
cloudflare-warp: init at 2022.02.24
This commit is contained in:
parent
8bb3b8ad0e
commit
d70a22ecf6
48
pkgs/tools/networking/cloudflare-warp/default.nix
Normal file
48
pkgs/tools/networking/cloudflare-warp/default.nix
Normal file
@ -0,0 +1,48 @@
|
||||
{ stdenv, lib, fetchurl, dpkg, autoPatchelfHook, dbus }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "cloudflare-warp";
|
||||
version = "2022.02.24";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://pkg.cloudflareclient.com/uploads/cloudflare_warp_2022_2_288_1_amd64_a0be7b47b3.deb";
|
||||
sha256 = "sha256-gBXF0EfFMT6BC6ts/6PQYJH3AAQSDsFoZGK3RZIqmOA=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
dpkg
|
||||
autoPatchelfHook
|
||||
];
|
||||
|
||||
buildInputs = [ dbus ];
|
||||
|
||||
dontBuild = true;
|
||||
dontConfigure = true;
|
||||
|
||||
unpackPhase = ''
|
||||
dpkg-deb -x ${src} ./
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mv usr $out
|
||||
mv lib $out
|
||||
mv bin $out
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
substituteInPlace $out/lib/systemd/system/warp-svc.service \
|
||||
--replace "ExecStart=" "ExecStart=$out"
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Replaces the connection between your device and the Internet with a modern, optimized, protocol";
|
||||
homepage = "https://pkg.cloudflareclient.com/packages/cloudflare-warp";
|
||||
license = licenses.unfree;
|
||||
maintainers = with maintainers; [ wolfangaukang ];
|
||||
platforms = [ "x86_64-linux" ];
|
||||
};
|
||||
}
|
@ -14749,6 +14749,8 @@ with pkgs;
|
||||
|
||||
cloudcompare = libsForQt5.callPackage ../applications/graphics/cloudcompare {};
|
||||
|
||||
cloudflare-warp = callPackage ../tools/networking/cloudflare-warp { };
|
||||
|
||||
cloudfoundry-cli = callPackage ../applications/networking/cluster/cloudfoundry-cli { };
|
||||
|
||||
clpm = callPackage ../development/tools/clpm {};
|
||||
|
Loading…
Reference in New Issue
Block a user