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
src = lib.fileset.toSource {
root = ../.;
fileset = lib.fileset.intersection (lib.fileset.fromSource (lib.sources.cleanSource ../.)) (
lib.fileset.unions [
../assets
../Cargo.toml
../Cargo.lock
(lib.fileset.fileFilter (file: file.hasExt "rs" || file.hasExt "toml") ../.)
]
);
fileset = lib.fileset.unions [
../assets
../Cargo.toml
../Cargo.lock
(lib.fileset.fromSource (lib.sources.sourceByRegex ../. [ "^yazi-.*" ]))
];
};
in
rustPlatform.buildRustPackage rec {