2023-03-15 16:39:30 +00:00
|
|
|
{ rustPlatform, fetchFromGitHub, lib, stdenv, Security }:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "viceroy";
|
2023-10-19 13:55:26 +00:00
|
|
|
version = "0.9.1";
|
2023-03-15 16:39:30 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "fastly";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-10-19 13:55:26 +00:00
|
|
|
hash = "sha256-Z5poizMXp4xgn0Tx0E36rvueBx3dFL7++alewqG9E9w=";
|
2023-03-15 16:39:30 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = lib.optional stdenv.isDarwin Security;
|
|
|
|
|
2023-10-19 13:55:26 +00:00
|
|
|
cargoHash = "sha256-EbvEclXwQgNIYQ/ppbZGhT4v4rMSpreURg2OYhQ7dRI=";
|
2023-03-15 16:39:30 +00:00
|
|
|
|
|
|
|
cargoTestFlags = [
|
|
|
|
"--package viceroy-lib"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Viceroy provides local testing for developers working with Compute@Edge";
|
|
|
|
homepage = "https://github.com/fastly/Viceroy";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ ereslibre shyim ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|