Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ rustPlatform, fetchFromGitHub, lib, stdenv, Security }: 2 3rustPlatform.buildRustPackage rec { 4 pname = "viceroy"; 5 version = "0.5.1"; 6 7 src = fetchFromGitHub { 8 owner = "fastly"; 9 repo = pname; 10 rev = "v${version}"; 11 hash = "sha256-OWvWi3mIgcWTnRMsnKgYqB9qzICBOmCcWenTfqhaz+k="; 12 }; 13 14 buildInputs = lib.optional stdenv.isDarwin Security; 15 16 cargoHash = "sha256-WwhoKHWZSOcocpqPqmSFYzNKxxXtpKpRreaPHqc+/40="; 17 18 cargoTestFlags = [ 19 "--package viceroy-lib" 20 ]; 21 22 meta = with lib; { 23 description = "Viceroy provides local testing for developers working with Compute@Edge"; 24 homepage = "https://github.com/fastly/Viceroy"; 25 license = licenses.asl20; 26 maintainers = with maintainers; [ ereslibre shyim ]; 27 platforms = platforms.unix; 28 }; 29}