From cd6394f0beac68ced28a29110d82ac6588fd5b27 Mon Sep 17 00:00:00 2001 From: Stefan Frijters Date: Wed, 17 Jul 2024 11:46:04 +0200 Subject: [PATCH] Do not include nix file in blinky source --- blinky/default.nix | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/blinky/default.nix b/blinky/default.nix index 321a886..9f115e1 100644 --- a/blinky/default.nix +++ b/blinky/default.nix @@ -6,10 +6,19 @@ rustPlatform.buildRustPackage { inherit ((builtins.fromTOML (builtins.readFile ./Cargo.toml)).package) name; - src = lib.cleanSource ./.; - cargoLock = { - lockFile = ./Cargo.lock; + + src = lib.fileset.toSource { + root = ./.; + fileset = lib.fileset.unions [ + ./Cargo.lock + ./Cargo.toml + ./src + ./.cargo + ]; }; + + cargoLock.lockFile = ./Cargo.lock; + doCheck = false; # Work around https://github.com/NixOS/nixpkgs/issues/281527 by forcing LLD as the linker: