2024-03-04 15:57:57 +00:00
|
|
|
{ lib
|
2024-03-25 21:48:41 +00:00
|
|
|
, buildGoModule
|
2024-03-04 15:57:57 +00:00
|
|
|
, fetchFromGitHub
|
2024-03-27 08:02:52 +00:00
|
|
|
, nixosTests
|
2024-03-04 15:57:57 +00:00
|
|
|
}:
|
|
|
|
let
|
2024-05-14 17:51:01 +00:00
|
|
|
version = "0.11.0";
|
2024-03-04 15:57:57 +00:00
|
|
|
in
|
|
|
|
|
2024-03-25 21:48:41 +00:00
|
|
|
buildGoModule {
|
2024-03-04 15:57:57 +00:00
|
|
|
pname = "scion";
|
|
|
|
|
|
|
|
inherit version;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "scionproto";
|
|
|
|
repo = "scion";
|
|
|
|
rev = "v${version}";
|
2024-05-14 17:51:01 +00:00
|
|
|
hash = "sha256-JemqSr1XBwW1hLuWQrApY/hqLj/VpW3xSJedVIoFSiY=";
|
2024-03-04 15:57:57 +00:00
|
|
|
};
|
|
|
|
|
2024-05-14 17:51:01 +00:00
|
|
|
vendorHash = "sha256-akFbHgo8xI2/4aQsyutjhXPM5d0A3se3kG/6Ebw1Qcs=";
|
2024-03-04 15:57:57 +00:00
|
|
|
|
|
|
|
excludedPackages = [ "acceptance" "demo" "tools" "pkg/private/xtest/graphupdater" ];
|
|
|
|
|
2024-03-24 21:04:12 +00:00
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
2024-03-04 15:57:57 +00:00
|
|
|
doCheck = true;
|
|
|
|
|
2024-03-27 08:02:52 +00:00
|
|
|
passthru.tests = {
|
|
|
|
inherit (nixosTests) scion-freestanding-deployment;
|
|
|
|
};
|
|
|
|
|
2024-03-04 15:57:57 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "A future Internet architecture utilizing path-aware networking";
|
|
|
|
homepage = "https://scion-architecture.net/";
|
|
|
|
platforms = platforms.unix;
|
|
|
|
license = licenses.asl20;
|
2024-03-04 16:56:03 +00:00
|
|
|
maintainers = with maintainers; [ sarcasticadmin matthewcroughan ];
|
2024-03-04 15:57:57 +00:00
|
|
|
};
|
|
|
|
}
|