diff options
| author | LLLL Colonq <llll@colonq> | 2025-11-03 05:07:35 -0500 |
|---|---|---|
| committer | LLLL Colonq <llll@colonq> | 2025-11-03 05:07:35 -0500 |
| commit | aa6cefb286f56773cf1840eb82e5e0f19370de0b (patch) | |
| tree | 1e1201bfa67cdaa68382eda1964ba46320d885e5 | |
| parent | 508fcd51ddc4d4333ff764fe415f46d82292b144 (diff) | |
Revert
| -rw-r--r-- | flake.nix | 42 |
1 files changed, 20 insertions, 22 deletions
@@ -60,17 +60,16 @@ ]; deps = path: nm: let - src = path; - # src = lib.cleanSourceWith { - # src = path; - # filter = path: type: - # (lib.hasSuffix "\.html" path) || - # (lib.hasSuffix "\.js" path) || - # (lib.hasSuffix "\.css" path) || - # (lib.hasInfix "/assets/" path) || - # (craneLib.filterCargoSources path type) - # ; - # }; + src = lib.cleanSourceWith { + src = path; + filter = path: type: + (lib.hasSuffix "\.html" path) || + (lib.hasSuffix "\.js" path) || + (lib.hasSuffix "\.css" path) || + (lib.hasInfix "/assets/" path) || + (craneLib.filterCargoSources path type) + ; + }; commonArgs = { inherit src nativeBuildInputs buildInputs; strictDeps = true; @@ -85,17 +84,16 @@ cargoArtifacts; build = path: nm: let - src = path; - # src = lib.cleanSourceWith { - # src = path; - # filter = path: type: - # (lib.hasSuffix "\.html" path) || - # (lib.hasSuffix "\.js" path) || - # (lib.hasSuffix "\.css" path) || - # (lib.hasInfix "/assets/" path) || - # (craneLib.filterCargoSources path type) - # ; - # }; + src = lib.cleanSourceWith { + src = path; + filter = path: type: + (lib.hasSuffix "\.html" path) || + (lib.hasSuffix "\.js" path) || + (lib.hasSuffix "\.css" path) || + (lib.hasInfix "/assets/" path) || + (craneLib.filterCargoSources path type) + ; + }; commonArgs = { inherit src nativeBuildInputs buildInputs; strictDeps = true; |
