Skip to content

Commit

Permalink
fix: fixed cargo-leptos & md watching
Browse files Browse the repository at this point in the history
  • Loading branch information
johnbchron committed Feb 29, 2024
1 parent 0814925 commit 6c8737c
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 31 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ tailwind-input-file = "style/main.scss"
# Set by cargo-leptos watch when building with that tool. Controls whether autoreload JS will be included in the head
watch = false

watch-additional-files = [ "content/*" ]
watch-additional-files = [ "content" ]

# The environment Leptos will run in, usually either "DEV" or "PROD"
env = "DEV"
Expand Down
34 changes: 17 additions & 17 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 5 additions & 13 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
flake-utils.url = "github:numtide/flake-utils";

cargo-leptos = {
#url= "github:leptos-rs/cargo-leptos/v1.7";
url = "github:benwis/cargo-leptos";
url= "github:leptos-rs/cargo-leptos";
# url = "github:benwis/cargo-leptos";
flake = false;
};

Expand Down Expand Up @@ -114,14 +114,14 @@
APP_ENVIRONMENT = "production";
});

cargo-leptos = pkgs.rustPlatform.buildRustPackage rec {
cargo-leptos = pkgs.rustPlatform.buildRustPackage {
pname = "cargo-leptos";
version = "0.1.8.1";
version = "0.2.7";
buildFeatures = ["no_downloads"]; # cargo-leptos will try to download Ruby and other things without this feature

src = inputs.cargo-leptos;

cargoSha256 = "sha256-XgKr1XLGHtCZbc4ZQJuko4dsJPl+hWmsIBex62tKEJ8=";
cargoSha256 = "sha256-jy1bWIXOjVwUhT5GAkIvTw/lPrvw6szAQflnfmhfgow=";
# cargoSha256 = "";

nativeBuildInputs = [pkgs.pkg-config pkgs.openssl];
Expand All @@ -133,14 +133,6 @@
];

doCheck = false; # integration tests depend on changing cargo config

meta = with lib; {
description = "A build tool for the Leptos web framework";
homepage = "https://github.com/leptos-rs/cargo-leptos";
changelog = "https://github.com/leptos-rs/cargo-leptos/blob/v${version}/CHANGELOG.md";
license = with licenses; [mit];
maintainers = with maintainers; [benwis];
};
};

flyConfig = ./fly.toml;
Expand Down

0 comments on commit 6c8737c

Please sign in to comment.