2024-10-04 16:56:33 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
fetchFromGitHub,
|
|
|
|
openssl,
|
|
|
|
perl,
|
|
|
|
pkg-config,
|
|
|
|
rustPlatform,
|
|
|
|
CoreServices,
|
|
|
|
Security,
|
|
|
|
fetchpatch,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "cargo-web";
|
|
|
|
version = "0.6.26";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "koute";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
sha256 = "1dl5brj5fnmxmwl130v36lvy4j64igdpdvjwmxw3jgg2c6r6b7cd";
|
|
|
|
};
|
|
|
|
|
2024-10-04 16:56:33 +00:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
name = "fix-qualified-path.patch";
|
|
|
|
url = "https://github.com/koute/cargo-web/commit/c9584542163d60d0aae6d6890509794e838e257f.patch";
|
|
|
|
hash = "sha256-w59fXmrszptKt0llqGt0AF+0b3r9N6xUY6zQkpZnemE=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2024-07-31 10:19:44 +00:00
|
|
|
cargoHash = "sha256-apPXSG8RV9hZ+jttn4XHhgmuLQ7344SQJna7Z/fu/mA=";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-10-04 16:56:33 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
openssl
|
|
|
|
perl
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
|
|
|
|
CoreServices
|
|
|
|
Security
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Cargo subcommand for the client-side Web";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "cargo-web";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/koute/cargo-web";
|
2024-10-04 16:56:33 +00:00
|
|
|
license = with licenses; [
|
|
|
|
asl20 # or
|
|
|
|
mit
|
|
|
|
];
|
2024-10-09 16:51:18 +00:00
|
|
|
maintainers = with maintainers; [ clevor ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|