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

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

31 lines
817 B
Nix
Raw Normal View History

2023-03-07 20:56:48 +00:00
{ rustPlatform, fetchFromGitHub, lib, stdenv, Security }:
rustPlatform.buildRustPackage rec {
pname = "viceroy";
2024-10-08 06:01:48 +00:00
version = "0.12.1";
2023-03-07 20:56:48 +00:00
src = fetchFromGitHub {
owner = "fastly";
repo = pname;
rev = "v${version}";
2024-10-08 06:01:48 +00:00
hash = "sha256-VzeHebbeqW+Tn1ZEiJRdfxJlWLg9Gf5+5dAaqPoTtP0=";
2023-03-07 20:56:48 +00:00
};
buildInputs = lib.optional stdenv.hostPlatform.isDarwin Security;
2024-10-08 06:01:48 +00:00
cargoHash = "sha256-WQzY4fh+plyJCBkJJ/4kgUZ8bEWzL5CVGX67LTu4rnI=";
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";
mainProgram = "viceroy";
2023-03-07 20:56:48 +00:00
homepage = "https://github.com/fastly/Viceroy";
license = licenses.asl20;
maintainers = with maintainers; [ ereslibre shyim ];
platforms = platforms.unix;
};
}