diff options
Diffstat (limited to 'pkgs/by-name/ba/back/package.nix')
-rw-r--r-- | pkgs/by-name/ba/back/package.nix | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/pkgs/by-name/ba/back/package.nix b/pkgs/by-name/ba/back/package.nix index dbc00cb..faa0e1d 100644 --- a/pkgs/by-name/ba/back/package.nix +++ b/pkgs/by-name/ba/back/package.nix @@ -8,12 +8,21 @@ # # You should have received a copy of the License along with this program. # If not, see <https://www.gnu.org/licenses/agpl.txt>. -{rustPlatform}: +{ + rustPlatform, + lib, +}: rustPlatform.buildRustPackage { pname = "back"; version = "1.0.0"; - src = ./.; + src = lib.cleanSourceWith { + src = lib.cleanSource ./.; + filter = name: type: + (type == "directory") + || (builtins.elem (builtins.baseNameOf name) ["Cargo.toml" "Cargo.lock" "style.css"]) + || (lib.strings.hasSuffix ".rs" (builtins.baseNameOf name)); + }; doCheck = true; |