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-09-19 19:54:17 +01:00
version = "0.8.1";
2023-03-07 20:56:48 +00:00
src = fetchFromGitHub {
owner = "fastly";
repo = pname;
rev = "v${version}";
2023-09-19 19:54:17 +01:00
hash = "sha256-DeKqLbgHmk6034ItyBzWRXLSeOj3+h49bzf9IX3Aa00=";
2023-03-07 20:56:48 +00:00
};
buildInputs = lib.optional stdenv.isDarwin Security;
2023-09-19 19:54:17 +01:00
cargoHash = "sha256-g6XdHl/Jxa+kpIjvnaP/RtoByo5O4IDC+s8M4DfGU/8=";
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;
};
}