setBuildTargets
pkgs.haskell.lib.setBuildTargets
Docs pulled from | This Revision | about 3 hours ago
Set a specific build target instead of compiling all targets in the package. For example, imagine we have a .cabal file with a library, and 2 executables "dev" and "server". We can build only "server" and not wait on the compilation of "dev" by using setBuildTarget as follows:
setBuildTarget (callCabal2nix "thePackageName" thePackageSrc {}) "server"
Inputs
drv
-
1. Function argument
xs
-
2. Function argument
Noogle detected
Implementation
The following is the current implementation of this function.
setBuildTargets = drv: xs: compose.setBuildTargets xs drv;