mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
buildDartApplication: Pass customSourceBuilders
through to pub2nix
This commit is contained in:
parent
23952fb641
commit
81a99463d8
@ -16,6 +16,7 @@
|
|||||||
, packageRoot ? (lib.removePrefix "/" (lib.removePrefix "source" sourceRoot))
|
, packageRoot ? (lib.removePrefix "/" (lib.removePrefix "source" sourceRoot))
|
||||||
, gitHashes ? { }
|
, gitHashes ? { }
|
||||||
, sdkSourceBuilders ? { }
|
, sdkSourceBuilders ? { }
|
||||||
|
, customSourceBuilders ? { }
|
||||||
|
|
||||||
, sdkSetupScript ? ""
|
, sdkSetupScript ? ""
|
||||||
, pubGetScript ? "dart pub get"
|
, pubGetScript ? "dart pub get"
|
||||||
@ -52,7 +53,7 @@ let
|
|||||||
generators = callPackage ./generators.nix { inherit dart; } { buildDrvArgs = args; };
|
generators = callPackage ./generators.nix { inherit dart; } { buildDrvArgs = args; };
|
||||||
|
|
||||||
pubspecLockFile = builtins.toJSON pubspecLock;
|
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 = generators.linkPackageConfig {
|
||||||
packageConfig = pub2nix.generatePackageConfig {
|
packageConfig = pub2nix.generatePackageConfig {
|
||||||
pname = if args.pname != null then "${args.pname}-${args.version}" else null;
|
pname = if args.pname != null then "${args.pname}-${args.version}" else null;
|
||||||
|
Loading…
Reference in New Issue
Block a user