Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 29 lines 873 B view raw
1{ lib, stdenv, fetchFromGitHub, rustPlatform, Security }: 2 3rustPlatform.buildRustPackage rec { 4 pname = "worker-build"; 5 version = "0.0.17"; 6 7 src = fetchFromGitHub { 8 owner = "cloudflare"; 9 repo = "workers-rs"; 10 rev = "v${version}"; 11 sha256 = "sha256-siKIE+RHAnZ8Lj3kWg7jEVo5t10dqc59OMrro26ClWo="; 12 }; 13 14 cargoHash = "sha256-j6WG8pRM6fIvMeXDdkjzRREE9tIug0w+UwWdOmPao4U="; 15 16 buildInputs = lib.optionals stdenv.isDarwin [ Security ]; 17 18 buildAndTestSubdir = "worker-build"; 19 20 # missing some module upstream to run the tests 21 doCheck = false; 22 23 meta = with lib; { 24 description = "This is a tool to be used as a custom build command for a Cloudflare Workers `workers-rs` project."; 25 homepage = "https://github.com/cloudflare/worker-rs"; 26 license = with licenses; [ asl20 /* or */ mit ]; 27 maintainers = with maintainers; [ happysalada ]; 28 }; 29}