2018-09-13 23:06:17 +02:00
|
|
|
{ stdenv, fetchFromGitHub, openssl, pkgconfig, rustPlatform
|
|
|
|
, CoreServices, Security
|
|
|
|
}:
|
2018-09-01 15:20:58 +02:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
name = "cargo-web-${version}";
|
|
|
|
version = "0.6.15";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "koute";
|
|
|
|
repo = "cargo-web";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "076g7cd9v53vi8xvd4kfsiyzw1m2hhd1lwlwcv2dx2s5vlw4dxzh";
|
|
|
|
};
|
|
|
|
|
|
|
|
cargoSha256 = "157av9zkirr00w9v11mh7yp8w36sy7rw6i80i5jmi0mgrdvcg5si";
|
|
|
|
|
|
|
|
nativeBuildInputs = [ openssl pkgconfig ];
|
2018-09-13 23:06:17 +02:00
|
|
|
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ CoreServices Security ];
|
2018-09-01 15:20:58 +02: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 23:06:17 +02:00
|
|
|
broken = stdenv.isDarwin; # test with CoreFoundation 10.11
|
2018-09-01 15:20:58 +02:00
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|