depot/third_party/nixpkgs/pkgs/development/tools/rust/cargo-web/default.nix
Default email 555cd8a8f9 Project import generated by Copybara.
GitOrigin-RevId: 5633bcff0c6162b9e4b5f1264264611e950c8ec7
2024-10-09 18:51:18 +02:00

55 lines
1.1 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
openssl,
perl,
pkg-config,
rustPlatform,
CoreServices,
Security,
fetchpatch,
}:
rustPlatform.buildRustPackage rec {
pname = "cargo-web";
version = "0.6.26";
src = fetchFromGitHub {
owner = "koute";
repo = pname;
rev = version;
sha256 = "1dl5brj5fnmxmwl130v36lvy4j64igdpdvjwmxw3jgg2c6r6b7cd";
};
patches = [
(fetchpatch {
name = "fix-qualified-path.patch";
url = "https://github.com/koute/cargo-web/commit/c9584542163d60d0aae6d6890509794e838e257f.patch";
hash = "sha256-w59fXmrszptKt0llqGt0AF+0b3r9N6xUY6zQkpZnemE=";
})
];
cargoHash = "sha256-apPXSG8RV9hZ+jttn4XHhgmuLQ7344SQJna7Z/fu/mA=";
nativeBuildInputs = [
openssl
perl
pkg-config
];
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
CoreServices
Security
];
meta = with lib; {
description = "Cargo subcommand for the client-side Web";
mainProgram = "cargo-web";
homepage = "https://github.com/koute/cargo-web";
license = with licenses; [
asl20 # or
mit
];
maintainers = with maintainers; [ clevor ];
};
}