nixpkgs/pkgs/development/tools/viceroy/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
774 B
Nix
Raw Normal View History

2023-03-07 20:56:48 +00:00
{ rustPlatform, fetchFromGitHub, lib, stdenv, Security }:
rustPlatform.buildRustPackage rec {
pname = "viceroy";
2023-08-15 07:02:04 +00:00
version = "0.7.0";
2023-03-07 20:56:48 +00:00
src = fetchFromGitHub {
owner = "fastly";
repo = pname;
rev = "v${version}";
2023-08-15 07:02:04 +00:00
hash = "sha256-ml9N4oxq80A1y7oFE98eifFIEtdcT9IRhXwDMEJ298k=";
2023-03-07 20:56:48 +00:00
};
buildInputs = lib.optional stdenv.isDarwin Security;
2023-08-15 07:02:04 +00:00
cargoHash = "sha256-PC2StxMefsiKaY9fXIG4167G9SoWlbmJBDGwrFBa4os=";
2023-03-07 20:56:48 +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;
};
}