2019-01-24 21:35:15 +00:00
|
|
|
{ stdenv, fetchFromGitHub, openssl, perl, pkgconfig, rustPlatform
|
2018-09-13 21:06:17 +00:00
|
|
|
, CoreServices, Security
|
|
|
|
}:
|
2018-09-01 13:20:58 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
name = "cargo-web-${version}";
|
2019-01-24 21:35:15 +00:00
|
|
|
version = "0.6.23";
|
2018-09-01 13:20:58 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "koute";
|
|
|
|
repo = "cargo-web";
|
|
|
|
rev = version;
|
2019-01-24 21:35:15 +00:00
|
|
|
sha256 = "1qbi3z4x39il07xlhfvq5ckzjqrf0yf6p8qidf24fp92gb940zxr";
|
2018-09-01 13:20:58 +00:00
|
|
|
};
|
|
|
|
|
2019-05-25 11:03:08 +00:00
|
|
|
cargoSha256 = "1ysp8y0s0ha5gffwkra2vd1qh5wmfy1678k9hsfals0ww2f79wii";
|
2018-09-01 13:20:58 +00:00
|
|
|
|
2019-01-24 21:35:15 +00:00
|
|
|
nativeBuildInputs = [ openssl perl pkgconfig ];
|
2018-09-13 21:06:17 +00:00
|
|
|
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ CoreServices Security ];
|
2018-09-01 13:20:58 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A Cargo subcommand for the client-side Web";
|
|
|
|
homepage = https://github.com/koute/cargo-web;
|
|
|
|
license = with licenses; [asl20 /* or */ mit];
|
|
|
|
maintainers = [ maintainers.kevincox ];
|
2018-09-13 21:06:17 +00:00
|
|
|
broken = stdenv.isDarwin; # test with CoreFoundation 10.11
|
2018-09-01 13:20:58 +00:00
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|