diff options
author | hacker1024 <hacker1024@users.sourceforge.net> | 2023-10-29 01:33:09 +1100 |
---|---|---|
committer | FlafyDev <flafyarazi@gmail.com> | 2023-12-26 18:48:12 +0200 |
commit | 81a99463d8b2047083fea88534ae9b7f27355835 (patch) | |
tree | c9e517ede9334e2378c44be8c98825f8d5c3801c /pkgs/build-support | |
parent | 23952fb64184b44d1c884dd592b6a19381413bf2 (diff) |
buildDartApplication: Pass `customSourceBuilders` through to pub2nix
Diffstat (limited to 'pkgs/build-support')
-rw-r--r-- | pkgs/build-support/dart/build-dart-application/default.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/build-support/dart/build-dart-application/default.nix b/pkgs/build-support/dart/build-dart-application/default.nix index c4cc3fe8ed0fb..83af65728cdad 100644 --- a/pkgs/build-support/dart/build-dart-application/default.nix +++ b/pkgs/build-support/dart/build-dart-application/default.nix @@ -16,6 +16,7 @@ , packageRoot ? (lib.removePrefix "/" (lib.removePrefix "source" sourceRoot)) , gitHashes ? { } , sdkSourceBuilders ? { } +, customSourceBuilders ? { } , sdkSetupScript ? "" , pubGetScript ? "dart pub get" @@ -52,7 +53,7 @@ let generators = callPackage ./generators.nix { inherit dart; } { buildDrvArgs = args; }; pubspecLockFile = builtins.toJSON pubspecLock; - pubspecLockData = pub2nix.readPubspecLock { inherit src packageRoot pubspecLock gitHashes sdkSourceBuilders; }; + pubspecLockData = pub2nix.readPubspecLock { inherit src packageRoot pubspecLock gitHashes sdkSourceBuilders customSourceBuilders; }; packageConfig = generators.linkPackageConfig { packageConfig = pub2nix.generatePackageConfig { pname = if args.pname != null then "${args.pname}-${args.version}" else null; |