-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwarpgate-http-protocol.nix
47 lines (41 loc) · 1 KB
/
warpgate-http-protocol.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
{ stdenv
, lib
, fetchFromGitHub
, makeWrapper
, rustPlatform
, rust-jemalloc-sys
, nodejs
, yarn
, fetchYarnDeps
, yarn2nix-moretea
, jre
, cargo
}:
let
pname = "warpgate-protocol-http";
version = "0.10.2";
hash = "sha256-WqYE18MHE+A3D4SsAj0Y2ZDmuXHm5s2MuBoRXfIrDPI=";
src = fetchFromGitHub {
owner = "warp-tech";
repo = pname;
rev = "v${version}";
hash = hash;
};
sourceRoot = "${src.name}/warpgate-protocol-http";
in
rustPlatform.buildRustPackage rec {
inherit pname version src;
cargoSha256 = "sha256-oWn1kfxAm829r5tnFx3Cx6pcMUAecmsEKAVU9hhQ4c8=";
#cargoDeps = rustPlatform.fetchCargoTarball {
# inherit src sourceRoot;
# name = "${pname}-${version}";
# hash = "";
#};
meta = with lib; {
description = "Smart SSH, HTTPS and MySQL bastion that requires no additional client-side software";
homepage = "https://github.com/warp-tech/warpgate";
license = licenses.asl20;
maintainers = with maintainers; [ tcheronneau ];
platforms = platforms.all;
};
}