From 48bf6da95540a48ad920643d3c4c43045e748a91 Mon Sep 17 00:00:00 2001 From: hacker1024 Date: Sun, 29 Oct 2023 00:13:35 +1100 Subject: [PATCH] buildDartApplication: Declare dependency sources as build inputs --- pkgs/build-support/dart/build-dart-application/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/build-support/dart/build-dart-application/default.nix b/pkgs/build-support/dart/build-dart-application/default.nix index 037e6d6ab916..f0f5a1205f70 100644 --- a/pkgs/build-support/dart/build-dart-application/default.nix +++ b/pkgs/build-support/dart/build-dart-application/default.nix @@ -112,6 +112,10 @@ let darwin.sigtool ]; + buildInputs = + # Ensure that we inherit the propagated build inputs from the dependencies. + builtins.attrValues pubspecLockData.dependencySources; + preConfigure = args.preConfigure or "" + '' ln -sf "$pubspecLockFilePath" pubspec.lock '';