Skip to content

Commit 52c27eb

Browse files
committed
fix: Change my-app to web-app for idiomatic naming
1 parent fb60feb commit 52c27eb

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

flake.nix

+5-5
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
hash = "sha256-X6VHTxVymZ76DLqDw6ZF59PRCEc7R5SVdcJ6qmrsXY4=";
8484
};
8585
# Build trunk derivation and resolve result folder with all output files
86-
my-app = craneLib.buildTrunkPackage (commonArgs
86+
web-app = craneLib.buildTrunkPackage (commonArgs
8787
// {
8888
inherit cargoArtifacts;
8989
# Adding tailwind for build all styles pre trunk build and hashing files
@@ -102,7 +102,7 @@
102102
});
103103
# Serve via python3 http.server result folder in buildTrunkPackage derivation
104104
serve-app = pkgs.writeShellScriptBin "serve-app" ''
105-
${pkgs.python3Minimal}/bin/python3 -m http.server -d ${my-app} 8000
105+
${pkgs.python3Minimal}/bin/python3 -m http.server -d ${web-app} 8000
106106
'';
107107
# Custom derivation using source filtering and run leptosfmt check
108108
leptosFmtCheck = {}:
@@ -118,7 +118,7 @@
118118
{
119119
# nix flake check
120120
checks = {
121-
inherit my-app;
121+
inherit web-app;
122122

123123
cargo-clippy = craneLib.cargoClippy (commonArgs
124124
// {
@@ -129,11 +129,11 @@
129129
inherit src;
130130
cargoExtraArgs = "--all";
131131
};
132-
my-app-leptosfmt = leptosFmtCheck { };
132+
web-app-leptosfmt = leptosFmtCheck { };
133133
};
134134

135135
# nix build
136-
packages.default = my-app;
136+
packages.default = web-app;
137137

138138
# nix run
139139
apps.default = flake-utils.lib.mkApp {

0 commit comments

Comments
 (0)