1 { lib, stdenv, fetchFromGitHub, openssl, perl, pkg-config, rustPlatform
2 , CoreServices, Security
5 rustPlatform.buildRustPackage rec {
9 src = fetchFromGitHub {
13 sha256 = "1dl5brj5fnmxmwl130v36lvy4j64igdpdvjwmxw3jgg2c6r6b7cd";
16 cargoSha256 = "0q7yxvvngfvn4s889qzp1qnsw2c6qy2ryv9vz9cxhmqidx4dg4va";
18 nativeBuildInputs = [ openssl perl pkg-config ];
19 buildInputs = lib.optionals stdenv.isDarwin [ CoreServices Security ];
22 description = "A Cargo subcommand for the client-side Web";
23 mainProgram = "cargo-web";
24 homepage = "https://github.com/koute/cargo-web";
25 license = with licenses; [ asl20 /* or */ mit ];
26 maintainers = with maintainers; [ kevincox ];