1{ lib, stdenv, fetchFromGitHub, openssl, perl, pkg-config, rustPlatform
2, CoreServices, Security
3}:
4
5rustPlatform.buildRustPackage rec {
6 pname = "cargo-web";
7 version = "0.6.26";
8
9 src = fetchFromGitHub {
10 owner = "koute";
11 repo = pname;
12 rev = version;
13 sha256 = "1dl5brj5fnmxmwl130v36lvy4j64igdpdvjwmxw3jgg2c6r6b7cd";
14 };
15
16 cargoSha256 = "0q7yxvvngfvn4s889qzp1qnsw2c6qy2ryv9vz9cxhmqidx4dg4va";
17
18 nativeBuildInputs = [ openssl perl pkg-config ];
19 buildInputs = lib.optionals stdenv.isDarwin [ CoreServices Security ];
20
21 meta = with lib; {
22 description = "A Cargo subcommand for the client-side Web";
23 homepage = "https://github.com/koute/cargo-web";
24 license = with licenses; [ asl20 /* or */ mit ];
25 maintainers = with maintainers; [ kevincox ];
26 };
27}