1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-24 06:31:02 +00:00
nixpkgs/pkgs/development/tools/cargo-web/default.nix

30 lines
896 B
Nix
Raw Normal View History

2019-01-24 21:35:15 +00:00
{ stdenv, fetchFromGitHub, openssl, perl, pkgconfig, rustPlatform
, CoreServices, Security
}:
2018-09-01 14:20:58 +01:00
rustPlatform.buildRustPackage rec {
name = "cargo-web-${version}";
2019-01-24 21:35:15 +00:00
version = "0.6.23";
2018-09-01 14:20:58 +01:00
src = fetchFromGitHub {
owner = "koute";
repo = "cargo-web";
rev = version;
2019-01-24 21:35:15 +00:00
sha256 = "1qbi3z4x39il07xlhfvq5ckzjqrf0yf6p8qidf24fp92gb940zxr";
2018-09-01 14:20:58 +01:00
};
2019-01-24 21:35:15 +00:00
cargoSha256 = "16wzgyn3k0yn70y0ciliyx1sjgppmkv9b4bn9p4x0qi6l0ah7fdp";
2018-09-01 14:20:58 +01:00
2019-01-24 21:35:15 +00:00
nativeBuildInputs = [ openssl perl pkgconfig ];
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ CoreServices Security ];
2018-09-01 14:20:58 +01: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 ];
broken = stdenv.isDarwin; # test with CoreFoundation 10.11
2018-09-01 14:20:58 +01:00
platforms = platforms.all;
};
}