2021-01-23 12:26:19 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, openssl, perl, pkg-config, rustPlatform
|
2019-06-19 17:56:22 +00:00
|
|
|
, CoreServices, Security
|
2018-09-13 21:06:17 +00:00
|
|
|
}:
|
2018-09-01 13:20:58 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
2019-06-03 10:20:26 +00:00
|
|
|
pname = "cargo-web";
|
2019-08-29 10:03:52 +00:00
|
|
|
version = "0.6.26";
|
2018-09-01 13:20:58 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "koute";
|
2019-06-03 10:20:26 +00:00
|
|
|
repo = pname;
|
2018-09-01 13:20:58 +00:00
|
|
|
rev = version;
|
2019-08-29 10:03:52 +00:00
|
|
|
sha256 = "1dl5brj5fnmxmwl130v36lvy4j64igdpdvjwmxw3jgg2c6r6b7cd";
|
2018-09-01 13:20:58 +00:00
|
|
|
};
|
|
|
|
|
2021-05-07 11:00:49 +00:00
|
|
|
cargoSha256 = "0q7yxvvngfvn4s889qzp1qnsw2c6qy2ryv9vz9cxhmqidx4dg4va";
|
2018-09-01 13:20:58 +00:00
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ openssl perl pkg-config ];
|
2021-01-23 12:26:19 +00:00
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [ CoreServices Security ];
|
2018-09-01 13:20:58 +00:00
|
|
|
|
2021-01-23 12:26:19 +00:00
|
|
|
meta = with lib; {
|
2018-09-01 13:20:58 +00:00
|
|
|
description = "A Cargo subcommand for the client-side Web";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/koute/cargo-web";
|
2019-06-03 10:20:26 +00:00
|
|
|
license = with licenses; [ asl20 /* or */ mit ];
|
2019-08-29 10:03:52 +00:00
|
|
|
maintainers = with maintainers; [ kevincox ];
|
2018-09-01 13:20:58 +00:00
|
|
|
};
|
|
|
|
}
|