Using cabal2nix with multiple executables in one Cabal file

I have a Haskell cabal file for a project where two interrelated executables shall be built. I can apply cabal2nix or callCabal2nix on this but it seems that always only one of the executables (the second) is built with no errors.

The Cabal file mentions two executables “client” and “server”. In my default.nix file I have the following:

with (import (builtins.fetchGit {url = "https://github.com/dmjio/miso"; ref = "refs/tags/1.8";}) {});
pkgs.haskell.packages.ghcjs.callCabal2nix "haskell-miso" ./. { }

And the output finally is…

➜  www-miso nix-build
this derivation will be built:
  /nix/store/76g0vb4vj8p6z61l7msxdjxxapv1zfck-haskell-miso-0.1.0.1.drv
building '/nix/store/76g0vb4vj8p6z61l7msxdjxxapv1zfck-haskell-miso-0.1.0.1.drv'...
setupCompilerEnvironmentPhase
Build with /nix/store/j9qrav98cj248ybdc5agvrlx0qyf9yhz-ghcjs-8.6.0.1.
unpacking sources
unpacking source archive /nix/store/zhyzsmycdaw0jia1ip904n3lipbjpzzz-www-miso
source root is www-miso
patching sources
compileBuildDriverPhase
setupCompileFlags: -package-db=/build/setup-package.conf.d -j4 -threaded
[1 of 1] Compiling Main             ( Setup.hs, /build/Main.o )
Linking Setup ...
configuring
configureFlags: --verbose --prefix=/nix/store/9xcrghf77sabp49vg2xn16dxwi7vx47d-haskell-miso-0.1.0.1 --libdir=$prefix/lib/$compiler --libsubdir=$abi/$libname --docdir=/nix/store/8is1w96bzrmg5zsnm3fchjfianp0nvhx-haskell-miso-0.1.0.1-doc/share/doc/haskell-miso-0.1.0.1 --with-gcc=gcc --package-db=/build/package.conf.d --ghc-option=-j4 --disable-split-objs --enable-library-profiling --profiling-detail=exported-functions --disable-profiling --enable-shared --disable-coverage --enable-static --disable-executable-dynamic --disable-tests --disable-benchmarks --enable-library-vanilla --disable-library-for-ghci --ghc-option=-split-sections --disable-library-stripping --disable-executable-stripping --ghcjs
Using Parsec parser
Configuring haskell-miso-0.1.0.1...
Warning: Packages using 'cabal-version: >= 1.10' must specify the
'default-language' field for each component (e.g. Haskell98 or Haskell2010).
If a component uses different languages in different modules then list the
other ones in the 'other-languages' field.
Dependency aeson -any: using aeson-1.4.2.0
Dependency base <5: using base-4.12.0.0
Dependency containers -any: using containers-0.6.0.1
Dependency miso -any: using miso-1.8.0.0
Dependency servant -any: using servant-0.15
Source component graph: component exe:client
Configured component graph:
    component haskell-miso-0.1.0.1-9Z5p0kMtgTkEZ2egT9R2NX-client
        include aeson-1.4.2.0-6oFZmLVQz2fGtrfaZYcFm5
        include base-4.12.0.0-BGkpKxWDclNH5NZN2wRc8Q
        include containers-0.6.0.1-BAqcfV1UBBeCIRjPbUYeSG
        include miso-1.8.0.0-2TEOtRlVfBi1qwxjiEHDA2
        include servant-0.15-HmRUbvEG3UY4owqygoQIim
Linked component graph:
    unit haskell-miso-0.1.0.1-9Z5p0kMtgTkEZ2egT9R2NX-client
        include aeson-1.4.2.0-6oFZmLVQz2fGtrfaZYcFm5
        include base-4.12.0.0-BGkpKxWDclNH5NZN2wRc8Q
        include containers-0.6.0.1-BAqcfV1UBBeCIRjPbUYeSG
        include miso-1.8.0.0-2TEOtRlVfBi1qwxjiEHDA2
        include servant-0.15-HmRUbvEG3UY4owqygoQIim
Ready component graph:
    definite haskell-miso-0.1.0.1-9Z5p0kMtgTkEZ2egT9R2NX-client
        depends aeson-1.4.2.0-6oFZmLVQz2fGtrfaZYcFm5
        depends base-4.12.0.0-BGkpKxWDclNH5NZN2wRc8Q
        depends containers-0.6.0.1-BAqcfV1UBBeCIRjPbUYeSG
        depends miso-1.8.0.0-2TEOtRlVfBi1qwxjiEHDA2
        depends servant-0.15-HmRUbvEG3UY4owqygoQIim
Using Cabal-2.4.0.1 compiled by ghc-8.6
Using compiler: ghcjs-8.6.0.1
Using install prefix:
/nix/store/9xcrghf77sabp49vg2xn16dxwi7vx47d-haskell-miso-0.1.0.1
Executables installed in:
/nix/store/9xcrghf77sabp49vg2xn16dxwi7vx47d-haskell-miso-0.1.0.1/bin
Libraries installed in:
/nix/store/9xcrghf77sabp49vg2xn16dxwi7vx47d-haskell-miso-0.1.0.1/lib/ghcjs-8.6.0.1/x86_64-linux-ghcjs-8.6.0.1-ghc8_6_2/haskell-miso-0.1.0.1
Dynamic Libraries installed in:
/nix/store/9xcrghf77sabp49vg2xn16dxwi7vx47d-haskell-miso-0.1.0.1/lib/ghcjs-8.6.0.1/x86_64-linux-ghcjs-8.6.0.1-ghc8_6_2
Private executables installed in:
/nix/store/9xcrghf77sabp49vg2xn16dxwi7vx47d-haskell-miso-0.1.0.1/libexec/x86_64-linux-ghcjs-8.6.0.1-ghc8_6_2/haskell-miso-0.1.0.1
Data files installed in:
/nix/store/9xcrghf77sabp49vg2xn16dxwi7vx47d-haskell-miso-0.1.0.1/share/x86_64-linux-ghcjs-8.6.0.1-ghc8_6_2/haskell-miso-0.1.0.1
Documentation installed in:
/nix/store/8is1w96bzrmg5zsnm3fchjfianp0nvhx-haskell-miso-0.1.0.1-doc/share/doc/haskell-miso-0.1.0.1
Configuration files installed in:
/nix/store/9xcrghf77sabp49vg2xn16dxwi7vx47d-haskell-miso-0.1.0.1/etc
No alex found
Using ar found on system at:
/nix/store/2dfjlvp38xzkyylwpavnh61azi0d168b-binutils-2.31.1/bin/ar
No c2hs found
No cpphs found
No doctest found
Using gcc version 7.4.0 given by user at:
/nix/store/ds1prvgw3i3ic8c7axyrw4lwm3d0gqab-gcc-wrapper-7.4.0/bin/gcc
Using ghc version 8.6.4 found on system at:
/nix/store/zqqbh40bpbw2j2v4phb948bpvsl76wpd-ghc-8.6.4/bin/ghc
Using ghc-pkg version 8.6.4 found on system at:
/nix/store/zqqbh40bpbw2j2v4phb948bpvsl76wpd-ghc-8.6.4/bin/ghc-pkg
Using ghcjs version 8.6.0.1 found on system at:
/nix/store/j9qrav98cj248ybdc5agvrlx0qyf9yhz-ghcjs-8.6.0.1/bin/ghcjs
Using ghcjs-pkg version 8.6.2 found on system at:
/nix/store/j9qrav98cj248ybdc5agvrlx0qyf9yhz-ghcjs-8.6.0.1/bin/ghcjs-pkg
No greencard found
Using haddock version 2.20.0 found on system at:
/nix/store/j9qrav98cj248ybdc5agvrlx0qyf9yhz-ghcjs-8.6.0.1/bin/haddock-ghcjs
No happy found
Using haskell-suite found on system at: haskell-suite-dummy-location
Using haskell-suite-pkg found on system at: haskell-suite-pkg-dummy-location
No hmake found
Using hpc version 0.67 found on system at:
/nix/store/zqqbh40bpbw2j2v4phb948bpvsl76wpd-ghc-8.6.4/bin/hpc
Using hsc2hs version 0.68.5 found on system at:
/nix/store/j9qrav98cj248ybdc5agvrlx0qyf9yhz-ghcjs-8.6.0.1/bin/hsc2hs-ghcjs
No hscolour found
No jhc found
Using ld found on system at:
/nix/store/ds1prvgw3i3ic8c7axyrw4lwm3d0gqab-gcc-wrapper-7.4.0/bin/ld
No pkg-config found
Using runghc version 8.6.4 found on system at:
/nix/store/zqqbh40bpbw2j2v4phb948bpvsl76wpd-ghc-8.6.4/bin/runghc
Using strip version 2.31 found on system at:
/nix/store/2dfjlvp38xzkyylwpavnh61azi0d168b-binutils-2.31.1/bin/strip
Using tar found on system at:
/nix/store/qp8rwgjnxzj5gn56ypqkl4xvdah9wzcz-gnutar-1.32/bin/tar
No uhc found
building
Preprocessing executable 'client' for haskell-miso-0.1.0.1..
Building executable 'client' for haskell-miso-0.1.0.1..

<no location info>: warning: [-Wmissing-home-modules]
    These modules are needed for compilation but not listed in your .cabal file's other-modules: 
        Common
[1 of 2] Compiling Common           ( shared/Common.hs, dist/build/client/client-tmp/Common.js_o )

shared/Common.hs:15:1: warning: [-Wdeprecations]
    Module ‘Servant.Utils.Links’ is deprecated: Use Servant.Links.
   |
15 | import Servant.Utils.Links
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^
[2 of 2] Compiling Main             ( client/Main.hs, dist/build/client/client-tmp/Main.js_o )

<no location info>: warning: [-Wmissing-home-modules]
    These modules are needed for compilation but not listed in your .cabal file's other-modules: 
        Common
Linking dist/build/client/client.jsexe (Common,Main)
haddockPhase
installing
Installing executable client in /nix/store/9xcrghf77sabp49vg2xn16dxwi7vx47d-haskell-miso-0.1.0.1/bin
Warning: The directory
/nix/store/9xcrghf77sabp49vg2xn16dxwi7vx47d-haskell-miso-0.1.0.1/bin is not in
the system search path.
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/9xcrghf77sabp49vg2xn16dxwi7vx47d-haskell-miso-0.1.0.1
patching script interpreter paths in /nix/store/9xcrghf77sabp49vg2xn16dxwi7vx47d-haskell-miso-0.1.0.1
checking for references to /build/ in /nix/store/9xcrghf77sabp49vg2xn16dxwi7vx47d-haskell-miso-0.1.0.1...
shrinking RPATHs of ELF executables and libraries in /nix/store/8is1w96bzrmg5zsnm3fchjfianp0nvhx-haskell-miso-0.1.0.1-doc
patching script interpreter paths in /nix/store/8is1w96bzrmg5zsnm3fchjfianp0nvhx-haskell-miso-0.1.0.1-doc
checking for references to /build/ in /nix/store/8is1w96bzrmg5zsnm3fchjfianp0nvhx-haskell-miso-0.1.0.1-doc...
/nix/store/9xcrghf77sabp49vg2xn16dxwi7vx47d-haskell-miso-0.1.0.1

As a result I only result/bin/client but no result/bin/server.

Any suggestions what I am doing wrong here would be very welcome!!! Since I am in the early learning stage with respect to nix I would also very much welcome hints on how to tackle such problems in general, i.e. how to “debug” these things.