depot/third_party/nixpkgs/pkgs/development/tools/viceroy/default.nix
Default email 2c76a4cb41 Project import generated by Copybara.
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
2023-11-16 04:20:00 +00:00

29 lines
774 B
Nix

{ rustPlatform, fetchFromGitHub, lib, stdenv, Security }:
rustPlatform.buildRustPackage rec {
pname = "viceroy";
version = "0.9.3";
src = fetchFromGitHub {
owner = "fastly";
repo = pname;
rev = "v${version}";
hash = "sha256-LOm4d6SV5rlb7NovhSp7V0JIaOfHIZOqeIcpIvTsZsA=";
};
buildInputs = lib.optional stdenv.isDarwin Security;
cargoHash = "sha256-Pz+jA4uC/40mj5Jn/lB+XcoN/QSD23iLwsEowTUI0pg=";
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;
};
}