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-11-10 16:11:06 +00:00
version = "0.9.3";
2023-03-07 20:56:48 +00:00
src = fetchFromGitHub {
owner = "fastly";
repo = pname;
rev = "v${version}";
2023-11-10 16:11:06 +00:00
hash = "sha256-LOm4d6SV5rlb7NovhSp7V0JIaOfHIZOqeIcpIvTsZsA=";
2023-03-07 20:56:48 +00:00
};
buildInputs = lib.optional stdenv.isDarwin Security;
2023-11-10 16:11:06 +00:00
cargoHash = "sha256-Pz+jA4uC/40mj5Jn/lB+XcoN/QSD23iLwsEowTUI0pg=";
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;
};
}