chore: regex from source

This commit is contained in:
isabel 2024-08-08 12:19:04 +01:00
parent 082b45be63
commit 402d2c7b45
No known key found for this signature in database
GPG key ID: 7F2F6BD6997FCDF7

View file

@ -15,14 +15,12 @@
let let
src = lib.fileset.toSource { src = lib.fileset.toSource {
root = ../.; root = ../.;
fileset = lib.fileset.intersection (lib.fileset.fromSource (lib.sources.cleanSource ../.)) ( fileset = lib.fileset.unions [
lib.fileset.unions [
../assets ../assets
../Cargo.toml ../Cargo.toml
../Cargo.lock ../Cargo.lock
(lib.fileset.fileFilter (file: file.hasExt "rs" || file.hasExt "toml") ../.) (lib.fileset.fromSource (lib.sources.sourceByRegex ../. [ "^yazi-.*" ]))
] ];
);
}; };
in in
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {