depot/third_party/nixpkgs/pkgs/by-name/sc/scion/package.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

49 lines
1.1 KiB
Nix

{ lib
, buildGoModule
, fetchFromGitHub
, nixosTests
}:
let
version = "0.11.0";
in
buildGoModule {
pname = "scion";
inherit version;
src = fetchFromGitHub {
owner = "scionproto";
repo = "scion";
rev = "v${version}";
hash = "sha256-JemqSr1XBwW1hLuWQrApY/hqLj/VpW3xSJedVIoFSiY=";
};
vendorHash = "sha256-akFbHgo8xI2/4aQsyutjhXPM5d0A3se3kG/6Ebw1Qcs=";
excludedPackages = [ "acceptance" "demo" "tools" "pkg/private/xtest/graphupdater" ];
postInstall = ''
set +e
mv $out/bin/gateway $out/bin/scion-ip-gateway
mv $out/bin/dispatcher $out/bin/scion-dispatcher
mv $out/bin/router $out/bin/scion-router
mv $out/bin/control $out/bin/scion-control
mv $out/bin/daemon $out/bin/scion-daemon
set -e
'';
doCheck = true;
passthru.tests = {
inherit (nixosTests) scion-freestanding-deployment;
};
meta = with lib; {
description = "Future Internet architecture utilizing path-aware networking";
homepage = "https://scion-architecture.net/";
platforms = platforms.unix;
license = licenses.asl20;
maintainers = with maintainers; [ sarcasticadmin matthewcroughan ];
};
}