query
On this page

setBuildTargets

pkgs.haskell.lib.setBuildTargets

Docs pulled from | This Revision | about 1 hour 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