2019-01-25 00:35:15 +03:00
|
|
|
{ stdenv, fetchFromGitHub, openssl, perl, pkgconfig, rustPlatform
|
2019-06-19 20:56:22 +03:00
|
|
|
, CoreServices, Security
|
2018-09-14 00:06:17 +03:00
|
|
|
}:
|
2018-09-01 16:20:58 +03:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
2019-06-03 13:20:26 +03:00
|
|
|
pname = "cargo-web";
|
2019-08-29 13:03:52 +03:00
|
|
|
version = "0.6.26";
|
2018-09-01 16:20:58 +03:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "koute";
|
2019-06-03 13:20:26 +03:00
|
|
|
repo = pname;
|
2018-09-01 16:20:58 +03:00
|
|
|
rev = version;
|
2019-08-29 13:03:52 +03:00
|
|
|
sha256 = "1dl5brj5fnmxmwl130v36lvy4j64igdpdvjwmxw3jgg2c6r6b7cd";
|
2018-09-01 16:20:58 +03:00
|
|
|
};
|
|
|
|
|
2019-08-29 13:03:52 +03:00
|
|
|
cargoSha256 = "1cbyy9rc33f69hbs0ff00v0v3p92f3lqq8ma5aqid5dm6d8l2dx5";
|
2018-09-01 16:20:58 +03:00
|
|
|
|
2019-01-25 00:35:15 +03:00
|
|
|
nativeBuildInputs = [ openssl perl pkgconfig ];
|
2019-06-19 20:56:22 +03:00
|
|
|
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ CoreServices Security ];
|
2018-09-01 16:20:58 +03:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A Cargo subcommand for the client-side Web";
|
|
|
|
homepage = https://github.com/koute/cargo-web;
|
2019-06-03 13:20:26 +03:00
|
|
|
license = with licenses; [ asl20 /* or */ mit ];
|
2019-08-29 13:03:52 +03:00
|
|
|
maintainers = with maintainers; [ kevincox ];
|
2018-09-01 16:20:58 +03:00
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|