nixpkgs/pkgs/development/tools/cargo-web/default.nix

33 lines
902 B
Nix
Raw Normal View History

2019-01-25 00:35:15 +03:00
{ stdenv, fetchFromGitHub, openssl, perl, pkgconfig, rustPlatform
2019-06-03 13:20:26 +03:00
, CoreServices, Security, cf-private
}:
2018-09-01 16:20:58 +03:00
rustPlatform.buildRustPackage rec {
2019-06-03 13:20:26 +03:00
pname = "cargo-web";
version = "0.6.25";
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-06-03 13:20:26 +03:00
sha256 = "0q77bryc7ap8gb4rzp9xk8ngqwxh106qn7899g30lwxycnyii0mf";
2018-09-01 16:20:58 +03:00
};
2019-06-03 13:20:26 +03:00
cargoSha256 = "1f4sj260q4rlzbajwimya1yhh90hmmbhr47yfg9i8xcv5cg0cqjn";
2018-09-01 16:20:58 +03:00
2019-01-25 00:35:15 +03:00
nativeBuildInputs = [ openssl perl pkgconfig ];
2019-06-03 13:20:26 +03:00
buildInputs = stdenv.lib.optionals stdenv.isDarwin [
CoreServices Security
# Needed for CFURLResourceIsReachable symbols.
cf-private
];
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 ];
2018-09-01 16:20:58 +03:00
maintainers = [ maintainers.kevincox ];
platforms = platforms.all;
};
}