query
On this page

setBuildTargets

pkgs.haskell.lib.setBuildTargets

Docs pulled from | This Revision | 31 minutes ago


Nixpkgs manual

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"

Noogle detected

Implementation

The following is the current implementation of this function.

setBuildTargets = drv: xs: compose.setBuildTargets xs drv;