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
804 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-08-21 04:58:35 +01:00
version = "0.11.0";
2023-03-07 20:56:48 +00:00
src = fetchFromGitHub {
owner = "fastly";
repo = pname;
rev = "v${version}";
2024-08-21 04:58:35 +01:00
hash = "sha256-8Vfi/lHkaUvp6szSrqHaewXUWZ9Rb0oQdc8tuBFlvLI=";
2023-03-07 20:56:48 +00:00
};
buildInputs = lib.optional stdenv.isDarwin Security;
2024-08-21 04:58:35 +01:00
cargoHash = "sha256-3HhNFcNo/TNnAOLARtVnN/Moh2/8cdW7cn7MTahR18g=";
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;
};
}