2023-03-15 16:39:30 +00:00
|
|
|
{ rustPlatform, fetchFromGitHub, lib, stdenv, Security }:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "viceroy";
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "0.9.7";
|
2023-03-15 16:39:30 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "fastly";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2024-06-05 15:53:02 +00:00
|
|
|
hash = "sha256-oPeHu/EVcGFE7sSwmMWHnT+xAxayZlfyIk/sM64Q+Hw=";
|
2023-03-15 16:39:30 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = lib.optional stdenv.isDarwin Security;
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
cargoHash = "sha256-z24qvgej2bWq0T4OgRnALJda4xGf5/s1O4ij2igCeyU=";
|
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";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "viceroy";
|
2023-03-15 16:39:30 +00:00
|
|
|
homepage = "https://github.com/fastly/Viceroy";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ ereslibre shyim ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|