depot/third_party/nixpkgs/pkgs/development/tools/viceroy/default.nix
Default email 83405b6dd2 Project import generated by Copybara.
GitOrigin-RevId: ac718d02867a84b42522a0ece52d841188208f2c
2023-03-15 17:39:30 +01:00

29 lines
774 B
Nix

{ rustPlatform, fetchFromGitHub, lib, stdenv, Security }:
rustPlatform.buildRustPackage rec {
pname = "viceroy";
version = "0.3.5";
src = fetchFromGitHub {
owner = "fastly";
repo = pname;
rev = "v${version}";
hash = "sha256-X+RmsS+GxdBiFt2Fo0MgkuyjQDwQNuOLDL1YVQdqhXo=";
};
buildInputs = lib.optional stdenv.isDarwin Security;
cargoHash = "sha256-vbhBlfHrFcjtaUJHYvB106ElYP0NquOo+rgIx9cWenY=";
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;
};
}