about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/tools/rust/cargo-web/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/tools/rust/cargo-web/default.nix')
-rw-r--r--nixpkgs/pkgs/development/tools/rust/cargo-web/default.nix27
1 files changed, 27 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/tools/rust/cargo-web/default.nix b/nixpkgs/pkgs/development/tools/rust/cargo-web/default.nix
new file mode 100644
index 000000000000..2c35e951cda1
--- /dev/null
+++ b/nixpkgs/pkgs/development/tools/rust/cargo-web/default.nix
@@ -0,0 +1,27 @@
+{ lib, stdenv, fetchFromGitHub, openssl, perl, pkg-config, rustPlatform
+, CoreServices, Security
+}:
+
+rustPlatform.buildRustPackage rec {
+  pname = "cargo-web";
+  version = "0.6.26";
+
+  src = fetchFromGitHub {
+    owner = "koute";
+    repo = pname;
+    rev = version;
+    sha256 = "1dl5brj5fnmxmwl130v36lvy4j64igdpdvjwmxw3jgg2c6r6b7cd";
+  };
+
+  cargoSha256 = "0q7yxvvngfvn4s889qzp1qnsw2c6qy2ryv9vz9cxhmqidx4dg4va";
+
+  nativeBuildInputs = [ openssl perl pkg-config ];
+  buildInputs = lib.optionals stdenv.isDarwin [ CoreServices Security ];
+
+  meta = with lib; {
+    description = "A Cargo subcommand for the client-side Web";
+    homepage = "https://github.com/koute/cargo-web";
+    license = with licenses; [ asl20 /* or */ mit ];
+    maintainers = with maintainers; [ kevincox ];
+  };
+}