From 0a6420cbac334fdf42ce88ff6f67624a5c3a2ecf Mon Sep 17 00:00:00 2001 From: Kevin Cox Date: Sat, 1 Sep 2018 14:20:58 +0100 Subject: [PATCH] cargo-web: init at 0.6.15 --- pkgs/development/tools/cargo-web/default.nix | 25 ++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 27 insertions(+) create mode 100644 pkgs/development/tools/cargo-web/default.nix diff --git a/pkgs/development/tools/cargo-web/default.nix b/pkgs/development/tools/cargo-web/default.nix new file mode 100644 index 000000000000..06d6697ef965 --- /dev/null +++ b/pkgs/development/tools/cargo-web/default.nix @@ -0,0 +1,25 @@ +{ stdenv, fetchFromGitHub, openssl, pkgconfig, rustPlatform }: + +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 ]; + + 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 ]; + platforms = platforms.all; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 076c61f6635a..f3679f497d5e 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -7159,6 +7159,8 @@ with pkgs; cargo-vendor = callPackage ../build-support/rust/cargo-vendor { }; + cargo-web = callPackage ../development/tools/cargo-web { }; + carnix = (callPackage ../build-support/rust/carnix.nix { }).carnix { }; defaultCrateOverrides = callPackage ../build-support/rust/default-crate-overrides.nix { };