Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
48 lines
1.3 KiB
Nix
48 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
buildGoModule,
|
|
}:
|
|
buildGoModule rec {
|
|
pname = "juicity";
|
|
version = "0.5.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "juicity";
|
|
repo = "juicity";
|
|
rev = "v${version}";
|
|
hash = "sha256-CFytPXfmGNfKDbyYuMCr+4HiH37f28cTmng+XgnO6T0=";
|
|
};
|
|
|
|
vendorHash = "sha256-kToWZCk6xAAj+t/elO9U5itoOBQ2J9sLcmzz+nNdBHg=";
|
|
|
|
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 = "Quic-based proxy protocol";
|
|
license = licenses.agpl3Only;
|
|
maintainers = with maintainers; [ oluceps ];
|
|
};
|
|
}
|