From 813260d029842ccce3294f432e054b98ab16f713 Mon Sep 17 00:00:00 2001 From: jopejoe1 Date: Wed, 10 Jul 2024 18:54:29 +0200 Subject: [PATCH] nix: backend limit included files --- nix/backend.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/nix/backend.nix b/nix/backend.nix index c4e0fe2..c2a3697 100644 --- a/nix/backend.nix +++ b/nix/backend.nix @@ -8,7 +8,15 @@ rustPlatform.buildRustPackage rec { pname = "backend"; version = "0.1"; - src = ../.; + src = lib.fileset.toSource { + root = ../.; + fileset = lib.fileset.unions [ + ../Cargo.lock + ../Cargo.toml + ../crates + ../.cargo + ]; + }; cargoLock = { lockFile = ../Cargo.lock;