From 402d2c7b451d558b49c86dc750c256e5d4b14aea Mon Sep 17 00:00:00 2001 From: isabel Date: Thu, 8 Aug 2024 12:19:04 +0100 Subject: [PATCH] chore: regex from source --- nix/yazi-unwrapped.nix | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/nix/yazi-unwrapped.nix b/nix/yazi-unwrapped.nix index f8aff879..587dbdb2 100644 --- a/nix/yazi-unwrapped.nix +++ b/nix/yazi-unwrapped.nix @@ -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 {