Merge pull request #246014 from oluceps/juicity

juicity: init at 0.1.0
This commit is contained in:
Nick Cao 2023-07-29 04:12:48 -06:00 committed by GitHub
commit 10b5a0a72d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 48 additions and 0 deletions

View file

@ -0,0 +1,46 @@
{ lib
, fetchFromGitHub
, buildGoModule
}:
buildGoModule rec {
pname = "juicity";
version = "0.1.0";
src = fetchFromGitHub {
owner = "juicity";
repo = pname;
rev = "v${version}";
hash = "sha256-JuV9nIFyT2AO0baayVSiKiVDH1waRsqqIp9I4KZ9Xu4=";
};
vendorHash = "sha256-xrSy6ZUbmUrRZ+vXBo9VPdhsbD/RV19xBHvNuhDWOPo=";
proxyVendor = true;
ldflags = [
"-X=github.com/juicity/juicity/config.Version=${version}"
];
subPackages = [
"cmd/server"
"cmd/client"
];
postInstall = ''
mv $out/bin/client $out/bin/juicity-client
mv $out/bin/server $out/bin/juicity-server
install -Dm444 install/juicity-server.service $out/lib/systemd/system/juicity-server.service
install -Dm444 install/juicity-client.service $out/lib/systemd/system/juicity-client.service
substituteInPlace $out/lib/systemd/system/juicity-server.service \
--replace /usr/bin/juicity-server $out/bin/juicity-server
substituteInPlace $out/lib/systemd/system/juicity-client.service \
--replace /usr/bin/juicity-client $out/bin/juicity-client
'';
meta = with lib; {
homepage = "https://github.com/juicity/juicity";
description = "A quic-based proxy protocol";
license = licenses.agpl3Only;
maintainers = with maintainers; [ oluceps ];
};
}

View file

@ -9315,6 +9315,8 @@ with pkgs;
juicefs = callPackage ../tools/filesystems/juicefs { };
juicity = callPackage ../tools/networking/juicity { };
jmtpfs = callPackage ../tools/filesystems/jmtpfs { };
jnettop = callPackage ../tools/networking/jnettop { };