Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
47 lines
1.2 KiB
Nix
47 lines
1.2 KiB
Nix
{
|
|
fetchFromGitHub,
|
|
lib,
|
|
stdenv,
|
|
rustPlatform,
|
|
pkg-config,
|
|
openssl,
|
|
}:
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "cargo-leptos";
|
|
version = "0.2.42";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "leptos-rs";
|
|
repo = "cargo-leptos";
|
|
rev = "v${version}";
|
|
hash = "sha256-hNkCkHgIKn1/angH70DOeRxX5G1gUtoLVgmYfsLPD44=";
|
|
};
|
|
|
|
cargoHash = "sha256-hJND5X/Sn16OA7iHXqj6gNpg0JdykI8U3k6l4++qFb0=";
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = [ openssl ];
|
|
|
|
env = {
|
|
OPENSSL_NO_VENDOR = 1;
|
|
}
|
|
// lib.optionalAttrs stdenv.hostPlatform.isDarwin {
|
|
# Fix for C++ compiler version on darwin for wasm-opt
|
|
CRATE_CC_NO_DEFAULTS = 1;
|
|
};
|
|
|
|
# https://github.com/leptos-rs/cargo-leptos#dependencies
|
|
buildFeatures = [ "no_downloads" ]; # cargo-leptos will try to install missing dependencies on its own otherwise
|
|
doCheck = false; # Check phase tries to query crates.io
|
|
|
|
meta = {
|
|
description = "Build tool for the Leptos web framework";
|
|
mainProgram = "cargo-leptos";
|
|
homepage = "https://github.com/leptos-rs/cargo-leptos";
|
|
changelog = "https://github.com/leptos-rs/cargo-leptos/releases/tag/v${version}";
|
|
license = with lib.licenses; [ mit ];
|
|
maintainers = with lib.maintainers; [ benwis ];
|
|
};
|
|
}
|