@@ -0,0 +1,25 @@
1+{ stdenv, fetchFromGitHub, openssl, pkgconfig, rustPlatform }:
2+
3+rustPlatform.buildRustPackage rec {
4+ name = "cargo-web-${version}";
5+ version = "0.6.15";
6+
7+ src = fetchFromGitHub {
8+ owner = "koute";
9+ repo = "cargo-web";
10+ rev = version;
11+ sha256 = "076g7cd9v53vi8xvd4kfsiyzw1m2hhd1lwlwcv2dx2s5vlw4dxzh";
12+ };
13+
14+ cargoSha256 = "157av9zkirr00w9v11mh7yp8w36sy7rw6i80i5jmi0mgrdvcg5si";
15+
16+ nativeBuildInputs = [ openssl pkgconfig ];
17+
18+ meta = with stdenv.lib; {
19+ description = "A Cargo subcommand for the client-side Web";
20+ homepage = https://github.com/koute/cargo-web;
21+ license = with licenses; [asl20 /* or */ mit];
22+ maintainers = [ maintainers.kevincox ];
23+ platforms = platforms.all;
24+ };
25+}