LnL7 / nix-darwin

nix modules for darwin
MIT License
3.13k stars 452 forks source link

nix-build fails with "ld: framework not found IOKit" #427

Open thoelze1 opened 2 years ago

thoelze1 commented 2 years ago

[I'm new to nix and have struggled to address this for hours now - apologies if this doesn't belong here]

I'm trying to build kmonad (off of master, specifically commit 25d290b) on macOS 10.15.6 with nix version 2.5.1. I don't think that kmonad's build definitions accommodate macOS in any way, and yet the build almost succeeds: it finds the CoreFoundation framework (I think, based on the configureFlags), but not the IOKit framework. Is this a problem with nix or with nix-darwin or with kmonad or something else? Thanks for any help.

this derivation will be built:
  /nix/store/db27mx93jiaawp6dlpfpxrpjxqfnlqgh-kmonad-0.4.1.drv
building '/nix/store/db27mx93jiaawp6dlpfpxrpjxqfnlqgh-kmonad-0.4.1.drv'...
setupCompilerEnvironmentPhase
Build with /nix/store/30m0a5bm5y76bi5mr1nbk1ahyvqrzdxx-ghc-8.10.7.
unpacking sources
unpacking source archive /nix/store/0k7i70gh0cy2bdxqd91f5sina8dwkrdn-kmonad
source root is kmonad
patching sources
compileBuildDriverPhase
setupCompileFlags: -package-db=/private/tmp/nix-build-kmonad-0.4.1.drv-0/setup-package.conf.d -j4 -threaded -rtsopts
[1 of 1] Compiling Main             ( /nix/store/4mdp8nhyfddh7bllbi7xszz7k9955n79-Setup.hs, /private/tmp/nix-build-kmonad-0.4.1.drv-0/Main.o )
Linking Setup ...
configuring
configureFlags: --verbose --prefix=/nix/store/8r14228map72lvq5w72j0x4znhcjypi2-kmonad-0.4.1 --libdir=$prefix/lib/$compiler --libsubdir=$abi/$libname --with-gcc=clang --package-db=/private/tmp/nix-build-kmonad-0.4.1.drv-0/package.conf.d --ghc-options=-j4 --disable-split-objs --disable-library-profiling --disable-profiling --enable-shared --disable-coverage --enable-static --disable-executable-dynamic --enable-tests --disable-benchmarks --enable-library-vanilla --disable-library-for-ghci --extra-include-dirs=/nix/store/hpi437938sayfqc64x3pdwni32zwjn2b-libcxx-7.1.0-dev/include --extra-lib-dirs=/nix/store/jjfiw9s3g7qbz6y96v8vfb4282rg4791-libcxx-7.1.0/lib --extra-include-dirs=/nix/store/slbi8ncmnpf4sdwizqa9shzkiqkp0hhw-libcxxabi-7.1.0-dev/include --extra-lib-dirs=/nix/store/r92p16irq0w4flscy19h3cs0yyzcz8y0-libcxxabi-7.1.0/lib --extra-include-dirs=/nix/store/hw6l078d2w3c05219n2f582kj6m4cv9j-compiler-rt-libc-7.1.0-dev/include --extra-lib-dirs=/nix/store/fc2cx0mp8hc3zs5y49nc332dmx246drc-compiler-rt-libc-7.1.0/lib --extra-lib-dirs=/nix/store/rq6iahdbacw3gzyf4h7b5j77i5amkya6-ncurses-6.2/lib --extra-lib-dirs=/nix/store/ss121ji3cz3xb5gdxqshf85qv7iq8byr-libffi-3.4.2/lib --extra-lib-dirs=/nix/store/dmr9m00rpcw6jr9vcvpgrllwlgchcxnn-gmp-6.2.1/lib --extra-include-dirs=/nix/store/v8zr5bxx9lay8wlchdispmmkzw7bavii-libiconv-50/include --extra-lib-dirs=/nix/store/v8zr5bxx9lay8wlchdispmmkzw7bavii-libiconv-50/lib --extra-lib-dirs=/nix/store/x90pcg5hlaa9bz56q2sws1cah446fmh0-git-2.33.0/lib --extra-framework-dirs=/nix/store/dimrkizsipd8iakwswlh92s8fi96r63l-swift-corefoundation/Library/Frameworks
Using Parsec parser
Configuring kmonad-0.4.1...
Flags chosen: dext=False, kext=False
Dependency base -any: using base-4.14.3.0
Dependency cereal -any: using cereal-0.5.8.1
Dependency lens -any: using lens-4.19.2
Dependency megaparsec -any: using megaparsec-9.0.1
Dependency mtl -any: using mtl-2.2.2
Dependency optparse-applicative -any: using optparse-applicative-0.16.1.0
Dependency resourcet -any: using resourcet-1.2.4.3
Dependency rio -any: using rio-0.1.21.0
Dependency template-haskell -any: using template-haskell-2.16.0.0
Dependency time -any: using time-1.9.3
Dependency unix -any: using unix-2.7.2.2
Dependency unliftio -any: using unliftio-0.2.20
Dependency base -any: using base-4.14.3.0
Dependency kmonad -any: using kmonad-0.4.1
Source component graph:
    component lib
    component exe:kmonad dependency lib
Configured component graph:
    component kmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u
        include base-4.14.3.0
        include cereal-0.5.8.1-Ij4dcFjPd1nCU6XwOHJYdr
        include lens-4.19.2-GPsFzMtehND7AzjK72zfbM
        include megaparsec-9.0.1-8lE0JlfeNt6GZI7ruExQp1
        include mtl-2.2.2
        include optparse-applicative-0.16.1.0-5A9rkiUCbgfzMUVUREbcC
        include resourcet-1.2.4.3-Kf696FyhTcA7yjNZhMJjsD
        include rio-0.1.21.0-AeHgOl34Nc4CygpapZPvbl
        include template-haskell-2.16.0.0
        include time-1.9.3
        include unix-2.7.2.2
        include unliftio-0.2.20-4vVfrVddWwYB3zs2C2xbRI
    component kmonad-0.4.1-4zeVUTS59eFBXpIGBTfmn0-kmonad
        include base-4.14.3.0
        include kmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u
Linked component graph:
    unit kmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u
        include base-4.14.3.0
        include cereal-0.5.8.1-Ij4dcFjPd1nCU6XwOHJYdr
        include lens-4.19.2-GPsFzMtehND7AzjK72zfbM
        include megaparsec-9.0.1-8lE0JlfeNt6GZI7ruExQp1
        include mtl-2.2.2
        include optparse-applicative-0.16.1.0-5A9rkiUCbgfzMUVUREbcC
        include resourcet-1.2.4.3-Kf696FyhTcA7yjNZhMJjsD
        include rio-0.1.21.0-AeHgOl34Nc4CygpapZPvbl
        include template-haskell-2.16.0.0
        include time-1.9.3
        include unix-2.7.2.2
        include unliftio-0.2.20-4vVfrVddWwYB3zs2C2xbRI
        KMonad.App=kmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u:KMonad.App,KMonad.App.Main=kmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u:KMonad.App.Main,KMonad.App.Types=kmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u:KMonad.App.Types,KMonad.Args=kmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u:KMonad.Args,KMonad.Args.Cmd=kmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u:KMonad.Args.Cmd,KMonad.Args.Joiner=kmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u:KMonad.Args.Joiner,KMonad.Args.Parser=kmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u:KMonad.Args.Parser,KMonad.Args.TH=kmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u:KMonad.Args.TH,KMonad.Args.Types=kmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u:KMonad.Args.Types,KMonad.Keyboard=kmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u:KMonad.Keyboard,KMonad.Keyboard.ComposeSeq=kmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u:KMonad.Keyboard.ComposeSeq,KMonad.Keyboard.IO=kmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u:KMonad.Keyboard.IO,KMonad.Keyboard.IO.Mac.IOKitSource=kmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u:KMonad.Keyboard.IO.Mac.IOKitSource,KMonad.Keyboard.IO.Mac.KextSink=kmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u:KMonad.Keyboard.IO.Mac.KextSink,KMonad.Keyboard.IO.Mac.Types=kmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u:KMonad.Keyboard.IO.Mac.Types,KMonad.Keyboard.Keycode=kmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u:KMonad.Keyboard.Keycode,KMonad.Keyboard.Ops=kmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u:KMonad.Keyboard.Ops,KMonad.Keyboard.Types=kmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u:KMonad.Keyboard.Types,KMonad.Model=kmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u:KMonad.Model,KMonad.Model.Action=kmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u:KMonad.Model.Action,KMonad.Model.BEnv=kmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u:KMonad.Model.BEnv,KMonad.Model.Button=kmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u:KMonad.Model.Button,KMonad.Model.Dispatch=kmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u:KMonad.Model.Dispatch,KMonad.Model.Hooks=kmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u:KMonad.Model.Hooks,KMonad.Model.Keymap=kmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u:KMonad.Model.Keymap,KMonad.Model.Sluice=kmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u:KMonad.Model.Sluice,KMonad.Prelude=kmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u:KMonad.Prelude,KMonad.Util=kmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u:KMonad.Util,KMonad.Util.LayerStack=kmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u:KMonad.Util.LayerStack,KMonad.Util.MultiMap=kmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u:KMonad.Util.MultiMap,Paths_kmonad=kmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u:Paths_kmonad
    unit kmonad-0.4.1-4zeVUTS59eFBXpIGBTfmn0-kmonad
        include base-4.14.3.0
        include kmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u
Ready component graph:
    definite kmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u
        depends base-4.14.3.0
        depends cereal-0.5.8.1-Ij4dcFjPd1nCU6XwOHJYdr
        depends lens-4.19.2-GPsFzMtehND7AzjK72zfbM
        depends megaparsec-9.0.1-8lE0JlfeNt6GZI7ruExQp1
        depends mtl-2.2.2
        depends optparse-applicative-0.16.1.0-5A9rkiUCbgfzMUVUREbcC
        depends resourcet-1.2.4.3-Kf696FyhTcA7yjNZhMJjsD
        depends rio-0.1.21.0-AeHgOl34Nc4CygpapZPvbl
        depends template-haskell-2.16.0.0
        depends time-1.9.3
        depends unix-2.7.2.2
        depends unliftio-0.2.20-4vVfrVddWwYB3zs2C2xbRI
    definite kmonad-0.4.1-4zeVUTS59eFBXpIGBTfmn0-kmonad
        depends base-4.14.3.0
        depends kmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u
Using Cabal-3.2.1.0 compiled by ghc-8.10
Using compiler: ghc-8.10.7
Using install prefix: /nix/store/8r14228map72lvq5w72j0x4znhcjypi2-kmonad-0.4.1
Executables installed in:
/nix/store/8r14228map72lvq5w72j0x4znhcjypi2-kmonad-0.4.1/bin
Libraries installed in:
/nix/store/8r14228map72lvq5w72j0x4znhcjypi2-kmonad-0.4.1/lib/ghc-8.10.7/x86_64-osx-ghc-8.10.7/kmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u
Dynamic Libraries installed in:
/nix/store/8r14228map72lvq5w72j0x4znhcjypi2-kmonad-0.4.1/lib/ghc-8.10.7/x86_64-osx-ghc-8.10.7
Private executables installed in:
/nix/store/8r14228map72lvq5w72j0x4znhcjypi2-kmonad-0.4.1/libexec/x86_64-osx-ghc-8.10.7/kmonad-0.4.1
Data files installed in:
/nix/store/8r14228map72lvq5w72j0x4znhcjypi2-kmonad-0.4.1/share/x86_64-osx-ghc-8.10.7/kmonad-0.4.1
Documentation installed in:
/nix/store/8r14228map72lvq5w72j0x4znhcjypi2-kmonad-0.4.1/share/doc/x86_64-osx-ghc-8.10.7/kmonad-0.4.1
Configuration files installed in:
/nix/store/8r14228map72lvq5w72j0x4znhcjypi2-kmonad-0.4.1/etc
No alex found
Using ar found on system at:
/nix/store/swi24jhphnkwbwnwlknb7m147s4ix99x-cctools-binutils-darwin-949.0.1/bin/ar
No c2hs found
No cpphs found
No doctest found
Using gcc version 4.2.1 given by user at:
/nix/store/3v5asy4nb2yqkb3asgvpv6ya7nzh09yh-clang-wrapper-7.1.0/bin/clang
Using ghc version 8.10.7 found on system at:
/nix/store/30m0a5bm5y76bi5mr1nbk1ahyvqrzdxx-ghc-8.10.7/bin/ghc
Using ghc-pkg version 8.10.7 found on system at:
/nix/store/30m0a5bm5y76bi5mr1nbk1ahyvqrzdxx-ghc-8.10.7/bin/ghc-pkg
No ghcjs found
No ghcjs-pkg found
No greencard found
Using haddock version 2.24.2 found on system at:
/nix/store/30m0a5bm5y76bi5mr1nbk1ahyvqrzdxx-ghc-8.10.7/bin/haddock
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.68 found on system at:
/nix/store/30m0a5bm5y76bi5mr1nbk1ahyvqrzdxx-ghc-8.10.7/bin/hpc
Using hsc2hs version 0.68.7 found on system at:
/nix/store/30m0a5bm5y76bi5mr1nbk1ahyvqrzdxx-ghc-8.10.7/bin/hsc2hs
No hscolour found
No jhc found
Using ld found on system at:
/nix/store/0mdzl24li08cq8qq8hbp8m1xh03zpa78-cctools-binutils-darwin-wrapper-949.0.1/bin/ld
No pkg-config found
Using runghc version 8.10.7 found on system at:
/nix/store/30m0a5bm5y76bi5mr1nbk1ahyvqrzdxx-ghc-8.10.7/bin/runghc
Using strip found on system at:
/nix/store/swi24jhphnkwbwnwlknb7m147s4ix99x-cctools-binutils-darwin-949.0.1/bin/strip
Using tar found on system at:
/nix/store/c0b40d8l51rj4in7wbnvlgzky1r75xk1-gnutar-1.34/bin/tar
No uhc found
building
Preprocessing library for kmonad-0.4.1..
Building library for kmonad-0.4.1..
[ 1 of 31] Compiling KMonad.Prelude   ( src/KMonad/Prelude.hs, dist/build/KMonad/Prelude.o, dist/build/KMonad/Prelude.dyn_o )
[ 2 of 31] Compiling KMonad.Keyboard.ComposeSeq ( src/KMonad/Keyboard/ComposeSeq.hs, dist/build/KMonad/Keyboard/ComposeSeq.o, dist/build/KMonad/Keyboard/ComposeSeq.dyn_o )
[ 3 of 31] Compiling KMonad.Args.TH   ( src/KMonad/Args/TH.hs, dist/build/KMonad/Args/TH.o, dist/build/KMonad/Args/TH.dyn_o )
[ 4 of 31] Compiling KMonad.Util      ( src/KMonad/Util.hs, dist/build/KMonad/Util.o, dist/build/KMonad/Util.dyn_o )
[ 5 of 31] Compiling KMonad.Util.LayerStack ( src/KMonad/Util/LayerStack.hs, dist/build/KMonad/Util/LayerStack.o, dist/build/KMonad/Util/LayerStack.dyn_o )
[ 6 of 31] Compiling KMonad.Util.MultiMap ( src/KMonad/Util/MultiMap.hs, dist/build/KMonad/Util/MultiMap.o, dist/build/KMonad/Util/MultiMap.dyn_o )
[ 7 of 31] Compiling KMonad.Keyboard.Keycode ( src/KMonad/Keyboard/Keycode.hs, dist/build/KMonad/Keyboard/Keycode.o, dist/build/KMonad/Keyboard/Keycode.dyn_o )
[ 8 of 31] Compiling KMonad.Keyboard.Types ( src/KMonad/Keyboard/Types.hs, dist/build/KMonad/Keyboard/Types.o, dist/build/KMonad/Keyboard/Types.dyn_o )
[ 9 of 31] Compiling KMonad.Keyboard.IO ( src/KMonad/Keyboard/IO.hs, dist/build/KMonad/Keyboard/IO.o, dist/build/KMonad/Keyboard/IO.dyn_o )
[10 of 31] Compiling KMonad.Keyboard.Ops ( src/KMonad/Keyboard/Ops.hs, dist/build/KMonad/Keyboard/Ops.o, dist/build/KMonad/Keyboard/Ops.dyn_o )
[11 of 31] Compiling KMonad.Keyboard  ( src/KMonad/Keyboard.hs, dist/build/KMonad/Keyboard.o, dist/build/KMonad/Keyboard.dyn_o )
[12 of 31] Compiling KMonad.Model.Sluice ( src/KMonad/Model/Sluice.hs, dist/build/KMonad/Model/Sluice.o, dist/build/KMonad/Model/Sluice.dyn_o )
[13 of 31] Compiling KMonad.Model.Dispatch ( src/KMonad/Model/Dispatch.hs, dist/build/KMonad/Model/Dispatch.o, dist/build/KMonad/Model/Dispatch.dyn_o )
[14 of 31] Compiling KMonad.Model.Action ( src/KMonad/Model/Action.hs, dist/build/KMonad/Model/Action.o, dist/build/KMonad/Model/Action.dyn_o )
[15 of 31] Compiling KMonad.Model.Hooks ( src/KMonad/Model/Hooks.hs, dist/build/KMonad/Model/Hooks.o, dist/build/KMonad/Model/Hooks.dyn_o )
[16 of 31] Compiling KMonad.Model.Button ( src/KMonad/Model/Button.hs, dist/build/KMonad/Model/Button.o, dist/build/KMonad/Model/Button.dyn_o )
[17 of 31] Compiling KMonad.Model.BEnv ( src/KMonad/Model/BEnv.hs, dist/build/KMonad/Model/BEnv.o, dist/build/KMonad/Model/BEnv.dyn_o )
[18 of 31] Compiling KMonad.Model.Keymap ( src/KMonad/Model/Keymap.hs, dist/build/KMonad/Model/Keymap.o, dist/build/KMonad/Model/Keymap.dyn_o )
[19 of 31] Compiling KMonad.Model     ( src/KMonad/Model.hs, dist/build/KMonad/Model.o, dist/build/KMonad/Model.dyn_o )
[20 of 31] Compiling KMonad.Keyboard.IO.Mac.Types ( src/KMonad/Keyboard/IO/Mac/Types.hs, dist/build/KMonad/Keyboard/IO/Mac/Types.o, dist/build/KMonad/Keyboard/IO/Mac/Types.dyn_o )
[21 of 31] Compiling KMonad.Keyboard.IO.Mac.KextSink ( src/KMonad/Keyboard/IO/Mac/KextSink.hs, dist/build/KMonad/Keyboard/IO/Mac/KextSink.o, dist/build/KMonad/Keyboard/IO/Mac/KextSink.dyn_o )
ld: warning: /nix/store/v8zr5bxx9lay8wlchdispmmkzw7bavii-libiconv-50/lib/libiconv.dylib, ignoring unexpected dylib file
ld: warning: /nix/store/v8zr5bxx9lay8wlchdispmmkzw7bavii-libiconv-50/lib/libiconv.dylib, ignoring unexpected dylib file
[22 of 31] Compiling KMonad.Keyboard.IO.Mac.IOKitSource ( src/KMonad/Keyboard/IO/Mac/IOKitSource.hs, dist/build/KMonad/Keyboard/IO/Mac/IOKitSource.o, dist/build/KMonad/Keyboard/IO/Mac/IOKitSource.dyn_o )
ld: warning: /nix/store/v8zr5bxx9lay8wlchdispmmkzw7bavii-libiconv-50/lib/libiconv.dylib, ignoring unexpected dylib file
ld: warning: /nix/store/v8zr5bxx9lay8wlchdispmmkzw7bavii-libiconv-50/lib/libiconv.dylib, ignoring unexpected dylib file
[23 of 31] Compiling KMonad.Args.Types ( src/KMonad/Args/Types.hs, dist/build/KMonad/Args/Types.o, dist/build/KMonad/Args/Types.dyn_o )
[24 of 31] Compiling KMonad.Args.Joiner ( src/KMonad/Args/Joiner.hs, dist/build/KMonad/Args/Joiner.o, dist/build/KMonad/Args/Joiner.dyn_o )
[25 of 31] Compiling KMonad.App.Types ( src/KMonad/App/Types.hs, dist/build/KMonad/App/Types.o, dist/build/KMonad/App/Types.dyn_o )
[26 of 31] Compiling KMonad.Args.Parser ( src/KMonad/Args/Parser.hs, dist/build/KMonad/Args/Parser.o, dist/build/KMonad/Args/Parser.dyn_o )
[27 of 31] Compiling Paths_kmonad     ( dist/build/autogen/Paths_kmonad.hs, dist/build/Paths_kmonad.o, dist/build/Paths_kmonad.dyn_o )
[28 of 31] Compiling KMonad.Args.Cmd  ( src/KMonad/Args/Cmd.hs, dist/build/KMonad/Args/Cmd.o, dist/build/KMonad/Args/Cmd.dyn_o )
[29 of 31] Compiling KMonad.Args      ( src/KMonad/Args.hs, dist/build/KMonad/Args.o, dist/build/KMonad/Args.dyn_o )
[30 of 31] Compiling KMonad.App.Main  ( src/KMonad/App/Main.hs, dist/build/KMonad/App/Main.o, dist/build/KMonad/App/Main.dyn_o )
[31 of 31] Compiling KMonad.App       ( src/KMonad/App.hs, dist/build/KMonad/App.o, dist/build/KMonad/App.dyn_o )
ld: framework not found IOKit
clang-7: error: linker command failed with exit code 1 (use -v to see invocation)
`cc' failed in phase `Linker'. (Exit code: 1)
error: builder for '/nix/store/db27mx93jiaawp6dlpfpxrpjxqfnlqgh-kmonad-0.4.1.drv' failed with exit code 1;
       last 10 log lines:
       > [25 of 31] Compiling KMonad.App.Types ( src/KMonad/App/Types.hs, dist/build/KMonad/App/Types.o, dist/build/KMonad/App/Types.dyn_o )
       > [26 of 31] Compiling KMonad.Args.Parser ( src/KMonad/Args/Parser.hs, dist/build/KMonad/Args/Parser.o, dist/build/KMonad/Args/Parser.dyn_o )
       > [27 of 31] Compiling Paths_kmonad     ( dist/build/autogen/Paths_kmonad.hs, dist/build/Paths_kmonad.o, dist/build/Paths_kmonad.dyn_o )
       > [28 of 31] Compiling KMonad.Args.Cmd  ( src/KMonad/Args/Cmd.hs, dist/build/KMonad/Args/Cmd.o, dist/build/KMonad/Args/Cmd.dyn_o )
       > [29 of 31] Compiling KMonad.Args      ( src/KMonad/Args.hs, dist/build/KMonad/Args.o, dist/build/KMonad/Args.dyn_o )
       > [30 of 31] Compiling KMonad.App.Main  ( src/KMonad/App/Main.hs, dist/build/KMonad/App/Main.o, dist/build/KMonad/App/Main.dyn_o )
       > [31 of 31] Compiling KMonad.App       ( src/KMonad/App.hs, dist/build/KMonad/App.o, dist/build/KMonad/App.dyn_o )
       > ld: framework not found IOKit
       > clang-7: error: linker command failed with exit code 1 (use -v to see invocation)
       > `cc' failed in phase `Linker'. (Exit code: 1)
       For full logs, run 'nix log /nix/store/db27mx93jiaawp6dlpfpxrpjxqfnlqgh-kmonad-0.4.1.drv'.

Edit for more info:

thoelze1 commented 2 years ago

I edited default.nix and now the build fails as follows:

this derivation will be built:
  /nix/store/26gb6grn9h2ip4gn35wlw324g9h7b6l2-kmonad-0.4.1.drv
this path will be fetched (0.32 MiB download, 2.41 MiB unpacked):
  /nix/store/cv7v8m3ixz9x3f7pfcl051mg7aykfk4i-IOKit-
copying path '/nix/store/cv7v8m3ixz9x3f7pfcl051mg7aykfk4i-IOKit-' from 'https://cache.nixos.org'...
building '/nix/store/26gb6grn9h2ip4gn35wlw324g9h7b6l2-kmonad-0.4.1.drv'...
setupCompilerEnvironmentPhase
Build with /nix/store/30m0a5bm5y76bi5mr1nbk1ahyvqrzdxx-ghc-8.10.7.
unpacking sources
unpacking source archive /nix/store/83z5p36cpq1scnnmwhjg29g32hvcfisc-kmonad
source root is kmonad
patching sources
compileBuildDriverPhase
setupCompileFlags: -package-db=/private/tmp/nix-build-kmonad-0.4.1.drv-0/setup-package.conf.d -j4 -threaded -rtsopts
[1 of 1] Compiling Main             ( /nix/store/4mdp8nhyfddh7bllbi7xszz7k9955n79-Setup.hs, /private/tmp/nix-build-kmonad-0.4.1.drv-0/Main.o )
Linking Setup ...
configuring
configureFlags: --verbose --prefix=/nix/store/iwb0l3rgc897c0kv67sjcp9cjrwk7d2q-kmonad-0.4.1 --libdir=$prefix/lib/$compiler --libsubdir=$abi/$libname --with-gcc=clang --package-db=/private/tmp/nix-build-kmonad-0.4.1.drv-0/package.conf.d --ghc-options=-j4 --disable-split-objs --disable-library-profiling --disable-profiling --enable-shared --disable-coverage --enable-static --disable-executable-dynamic --enable-tests --disable-benchmarks --enable-library-vanilla --disable-library-for-ghci --extra-include-dirs=/nix/store/hpi437938sayfqc64x3pdwni32zwjn2b-libcxx-7.1.0-dev/include --extra-lib-dirs=/nix/store/jjfiw9s3g7qbz6y96v8vfb4282rg4791-libcxx-7.1.0/lib --extra-include-dirs=/nix/store/slbi8ncmnpf4sdwizqa9shzkiqkp0hhw-libcxxabi-7.1.0-dev/include --extra-lib-dirs=/nix/store/r92p16irq0w4flscy19h3cs0yyzcz8y0-libcxxabi-7.1.0/lib --extra-include-dirs=/nix/store/hw6l078d2w3c05219n2f582kj6m4cv9j-compiler-rt-libc-7.1.0-dev/include --extra-lib-dirs=/nix/store/fc2cx0mp8hc3zs5y49nc332dmx246drc-compiler-rt-libc-7.1.0/lib --extra-lib-dirs=/nix/store/rq6iahdbacw3gzyf4h7b5j77i5amkya6-ncurses-6.2/lib --extra-lib-dirs=/nix/store/ss121ji3cz3xb5gdxqshf85qv7iq8byr-libffi-3.4.2/lib --extra-lib-dirs=/nix/store/dmr9m00rpcw6jr9vcvpgrllwlgchcxnn-gmp-6.2.1/lib --extra-include-dirs=/nix/store/v8zr5bxx9lay8wlchdispmmkzw7bavii-libiconv-50/include --extra-lib-dirs=/nix/store/v8zr5bxx9lay8wlchdispmmkzw7bavii-libiconv-50/lib --extra-lib-dirs=/nix/store/x90pcg5hlaa9bz56q2sws1cah446fmh0-git-2.33.0/lib --extra-framework-dirs=/nix/store/cv7v8m3ixz9x3f7pfcl051mg7aykfk4i-IOKit-/Library/Frameworks --extra-framework-dirs=/nix/store/dimrkizsipd8iakwswlh92s8fi96r63l-swift-corefoundation/Library/Frameworks
Using Parsec parser
Configuring kmonad-0.4.1...
Flags chosen: dext=False, kext=False
Dependency base -any: using base-4.14.3.0
Dependency cereal -any: using cereal-0.5.8.1
Dependency lens -any: using lens-4.19.2
Dependency megaparsec -any: using megaparsec-9.0.1
Dependency mtl -any: using mtl-2.2.2
Dependency optparse-applicative -any: using optparse-applicative-0.16.1.0
Dependency resourcet -any: using resourcet-1.2.4.3
Dependency rio -any: using rio-0.1.21.0
Dependency template-haskell -any: using template-haskell-2.16.0.0
Dependency time -any: using time-1.9.3
Dependency unix -any: using unix-2.7.2.2
Dependency unliftio -any: using unliftio-0.2.20
Dependency base -any: using base-4.14.3.0
Dependency kmonad -any: using kmonad-0.4.1
Source component graph:
    component lib
    component exe:kmonad dependency lib
Configured component graph:
    component kmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u
        include base-4.14.3.0
        include cereal-0.5.8.1-Ij4dcFjPd1nCU6XwOHJYdr
        include lens-4.19.2-GPsFzMtehND7AzjK72zfbM
        include megaparsec-9.0.1-8lE0JlfeNt6GZI7ruExQp1
        include mtl-2.2.2
        include optparse-applicative-0.16.1.0-5A9rkiUCbgfzMUVUREbcC
        include resourcet-1.2.4.3-Kf696FyhTcA7yjNZhMJjsD
        include rio-0.1.21.0-AeHgOl34Nc4CygpapZPvbl
        include template-haskell-2.16.0.0
        include time-1.9.3
        include unix-2.7.2.2
        include unliftio-0.2.20-4vVfrVddWwYB3zs2C2xbRI
    component kmonad-0.4.1-4zeVUTS59eFBXpIGBTfmn0-kmonad
        include base-4.14.3.0
        include kmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u
Linked component graph:
    unit kmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u
        include base-4.14.3.0
        include cereal-0.5.8.1-Ij4dcFjPd1nCU6XwOHJYdr
        include lens-4.19.2-GPsFzMtehND7AzjK72zfbM
        include megaparsec-9.0.1-8lE0JlfeNt6GZI7ruExQp1
        include mtl-2.2.2
        include optparse-applicative-0.16.1.0-5A9rkiUCbgfzMUVUREbcC
        include resourcet-1.2.4.3-Kf696FyhTcA7yjNZhMJjsD
        include rio-0.1.21.0-AeHgOl34Nc4CygpapZPvbl
        include template-haskell-2.16.0.0
        include time-1.9.3
        include unix-2.7.2.2
        include unliftio-0.2.20-4vVfrVddWwYB3zs2C2xbRI
        KMonad.App=kmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u:KMonad.App,KMonad.App.Main=kmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u:KMonad.App.Main,KMonad.App.Types=kmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u:KMonad.App.Types,KMonad.Args=kmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u:KMonad.Args,KMonad.Args.Cmd=kmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u:KMonad.Args.Cmd,KMonad.Args.Joiner=kmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u:KMonad.Args.Joiner,KMonad.Args.Parser=kmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u:KMonad.Args.Parser,KMonad.Args.TH=kmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u:KMonad.Args.TH,KMonad.Args.Types=kmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u:KMonad.Args.Types,KMonad.Keyboard=kmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u:KMonad.Keyboard,KMonad.Keyboard.ComposeSeq=kmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u:KMonad.Keyboard.ComposeSeq,KMonad.Keyboard.IO=kmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u:KMonad.Keyboard.IO,KMonad.Keyboard.IO.Mac.IOKitSource=kmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u:KMonad.Keyboard.IO.Mac.IOKitSource,KMonad.Keyboard.IO.Mac.KextSink=kmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u:KMonad.Keyboard.IO.Mac.KextSink,KMonad.Keyboard.IO.Mac.Types=kmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u:KMonad.Keyboard.IO.Mac.Types,KMonad.Keyboard.Keycode=kmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u:KMonad.Keyboard.Keycode,KMonad.Keyboard.Ops=kmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u:KMonad.Keyboard.Ops,KMonad.Keyboard.Types=kmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u:KMonad.Keyboard.Types,KMonad.Model=kmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u:KMonad.Model,KMonad.Model.Action=kmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u:KMonad.Model.Action,KMonad.Model.BEnv=kmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u:KMonad.Model.BEnv,KMonad.Model.Button=kmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u:KMonad.Model.Button,KMonad.Model.Dispatch=kmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u:KMonad.Model.Dispatch,KMonad.Model.Hooks=kmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u:KMonad.Model.Hooks,KMonad.Model.Keymap=kmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u:KMonad.Model.Keymap,KMonad.Model.Sluice=kmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u:KMonad.Model.Sluice,KMonad.Prelude=kmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u:KMonad.Prelude,KMonad.Util=kmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u:KMonad.Util,KMonad.Util.LayerStack=kmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u:KMonad.Util.LayerStack,KMonad.Util.MultiMap=kmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u:KMonad.Util.MultiMap,Paths_kmonad=kmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u:Paths_kmonad
    unit kmonad-0.4.1-4zeVUTS59eFBXpIGBTfmn0-kmonad
        include base-4.14.3.0
        include kmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u
Ready component graph:
    definite kmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u
        depends base-4.14.3.0
        depends cereal-0.5.8.1-Ij4dcFjPd1nCU6XwOHJYdr
        depends lens-4.19.2-GPsFzMtehND7AzjK72zfbM
        depends megaparsec-9.0.1-8lE0JlfeNt6GZI7ruExQp1
        depends mtl-2.2.2
        depends optparse-applicative-0.16.1.0-5A9rkiUCbgfzMUVUREbcC
        depends resourcet-1.2.4.3-Kf696FyhTcA7yjNZhMJjsD
        depends rio-0.1.21.0-AeHgOl34Nc4CygpapZPvbl
        depends template-haskell-2.16.0.0
        depends time-1.9.3
        depends unix-2.7.2.2
        depends unliftio-0.2.20-4vVfrVddWwYB3zs2C2xbRI
    definite kmonad-0.4.1-4zeVUTS59eFBXpIGBTfmn0-kmonad
        depends base-4.14.3.0
        depends kmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u
Using Cabal-3.2.1.0 compiled by ghc-8.10
Using compiler: ghc-8.10.7
Using install prefix: /nix/store/iwb0l3rgc897c0kv67sjcp9cjrwk7d2q-kmonad-0.4.1
Executables installed in:
/nix/store/iwb0l3rgc897c0kv67sjcp9cjrwk7d2q-kmonad-0.4.1/bin
Libraries installed in:
/nix/store/iwb0l3rgc897c0kv67sjcp9cjrwk7d2q-kmonad-0.4.1/lib/ghc-8.10.7/x86_64-osx-ghc-8.10.7/kmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u
Dynamic Libraries installed in:
/nix/store/iwb0l3rgc897c0kv67sjcp9cjrwk7d2q-kmonad-0.4.1/lib/ghc-8.10.7/x86_64-osx-ghc-8.10.7
Private executables installed in:
/nix/store/iwb0l3rgc897c0kv67sjcp9cjrwk7d2q-kmonad-0.4.1/libexec/x86_64-osx-ghc-8.10.7/kmonad-0.4.1
Data files installed in:
/nix/store/iwb0l3rgc897c0kv67sjcp9cjrwk7d2q-kmonad-0.4.1/share/x86_64-osx-ghc-8.10.7/kmonad-0.4.1
Documentation installed in:
/nix/store/iwb0l3rgc897c0kv67sjcp9cjrwk7d2q-kmonad-0.4.1/share/doc/x86_64-osx-ghc-8.10.7/kmonad-0.4.1
Configuration files installed in:
/nix/store/iwb0l3rgc897c0kv67sjcp9cjrwk7d2q-kmonad-0.4.1/etc
No alex found
Using ar found on system at:
/nix/store/swi24jhphnkwbwnwlknb7m147s4ix99x-cctools-binutils-darwin-949.0.1/bin/ar
No c2hs found
No cpphs found
No doctest found
Using gcc version 4.2.1 given by user at:
/nix/store/3v5asy4nb2yqkb3asgvpv6ya7nzh09yh-clang-wrapper-7.1.0/bin/clang
Using ghc version 8.10.7 found on system at:
/nix/store/30m0a5bm5y76bi5mr1nbk1ahyvqrzdxx-ghc-8.10.7/bin/ghc
Using ghc-pkg version 8.10.7 found on system at:
/nix/store/30m0a5bm5y76bi5mr1nbk1ahyvqrzdxx-ghc-8.10.7/bin/ghc-pkg
No ghcjs found
No ghcjs-pkg found
No greencard found
Using haddock version 2.24.2 found on system at:
/nix/store/30m0a5bm5y76bi5mr1nbk1ahyvqrzdxx-ghc-8.10.7/bin/haddock
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.68 found on system at:
/nix/store/30m0a5bm5y76bi5mr1nbk1ahyvqrzdxx-ghc-8.10.7/bin/hpc
Using hsc2hs version 0.68.7 found on system at:
/nix/store/30m0a5bm5y76bi5mr1nbk1ahyvqrzdxx-ghc-8.10.7/bin/hsc2hs
No hscolour found
No jhc found
Using ld found on system at:
/nix/store/0mdzl24li08cq8qq8hbp8m1xh03zpa78-cctools-binutils-darwin-wrapper-949.0.1/bin/ld
No pkg-config found
Using runghc version 8.10.7 found on system at:
/nix/store/30m0a5bm5y76bi5mr1nbk1ahyvqrzdxx-ghc-8.10.7/bin/runghc
Using strip found on system at:
/nix/store/swi24jhphnkwbwnwlknb7m147s4ix99x-cctools-binutils-darwin-949.0.1/bin/strip
Using tar found on system at:
/nix/store/c0b40d8l51rj4in7wbnvlgzky1r75xk1-gnutar-1.34/bin/tar
No uhc found
building
Preprocessing library for kmonad-0.4.1..
Building library for kmonad-0.4.1..
[ 1 of 31] Compiling KMonad.Prelude   ( src/KMonad/Prelude.hs, dist/build/KMonad/Prelude.o, dist/build/KMonad/Prelude.dyn_o )
[ 2 of 31] Compiling KMonad.Keyboard.ComposeSeq ( src/KMonad/Keyboard/ComposeSeq.hs, dist/build/KMonad/Keyboard/ComposeSeq.o, dist/build/KMonad/Keyboard/ComposeSeq.dyn_o )
[ 3 of 31] Compiling KMonad.Args.TH   ( src/KMonad/Args/TH.hs, dist/build/KMonad/Args/TH.o, dist/build/KMonad/Args/TH.dyn_o )
[ 4 of 31] Compiling KMonad.Util      ( src/KMonad/Util.hs, dist/build/KMonad/Util.o, dist/build/KMonad/Util.dyn_o )
[ 5 of 31] Compiling KMonad.Util.LayerStack ( src/KMonad/Util/LayerStack.hs, dist/build/KMonad/Util/LayerStack.o, dist/build/KMonad/Util/LayerStack.dyn_o )
[ 6 of 31] Compiling KMonad.Util.MultiMap ( src/KMonad/Util/MultiMap.hs, dist/build/KMonad/Util/MultiMap.o, dist/build/KMonad/Util/MultiMap.dyn_o )
[ 7 of 31] Compiling KMonad.Keyboard.Keycode ( src/KMonad/Keyboard/Keycode.hs, dist/build/KMonad/Keyboard/Keycode.o, dist/build/KMonad/Keyboard/Keycode.dyn_o )
[ 8 of 31] Compiling KMonad.Keyboard.Types ( src/KMonad/Keyboard/Types.hs, dist/build/KMonad/Keyboard/Types.o, dist/build/KMonad/Keyboard/Types.dyn_o )
[ 9 of 31] Compiling KMonad.Keyboard.IO ( src/KMonad/Keyboard/IO.hs, dist/build/KMonad/Keyboard/IO.o, dist/build/KMonad/Keyboard/IO.dyn_o )
[10 of 31] Compiling KMonad.Keyboard.Ops ( src/KMonad/Keyboard/Ops.hs, dist/build/KMonad/Keyboard/Ops.o, dist/build/KMonad/Keyboard/Ops.dyn_o )
[11 of 31] Compiling KMonad.Keyboard  ( src/KMonad/Keyboard.hs, dist/build/KMonad/Keyboard.o, dist/build/KMonad/Keyboard.dyn_o )
[12 of 31] Compiling KMonad.Model.Sluice ( src/KMonad/Model/Sluice.hs, dist/build/KMonad/Model/Sluice.o, dist/build/KMonad/Model/Sluice.dyn_o )
[13 of 31] Compiling KMonad.Model.Dispatch ( src/KMonad/Model/Dispatch.hs, dist/build/KMonad/Model/Dispatch.o, dist/build/KMonad/Model/Dispatch.dyn_o )
[14 of 31] Compiling KMonad.Model.Action ( src/KMonad/Model/Action.hs, dist/build/KMonad/Model/Action.o, dist/build/KMonad/Model/Action.dyn_o )
[15 of 31] Compiling KMonad.Model.Hooks ( src/KMonad/Model/Hooks.hs, dist/build/KMonad/Model/Hooks.o, dist/build/KMonad/Model/Hooks.dyn_o )
[16 of 31] Compiling KMonad.Model.Button ( src/KMonad/Model/Button.hs, dist/build/KMonad/Model/Button.o, dist/build/KMonad/Model/Button.dyn_o )
[17 of 31] Compiling KMonad.Model.BEnv ( src/KMonad/Model/BEnv.hs, dist/build/KMonad/Model/BEnv.o, dist/build/KMonad/Model/BEnv.dyn_o )
[18 of 31] Compiling KMonad.Model.Keymap ( src/KMonad/Model/Keymap.hs, dist/build/KMonad/Model/Keymap.o, dist/build/KMonad/Model/Keymap.dyn_o )
[19 of 31] Compiling KMonad.Model     ( src/KMonad/Model.hs, dist/build/KMonad/Model.o, dist/build/KMonad/Model.dyn_o )
[20 of 31] Compiling KMonad.Keyboard.IO.Mac.Types ( src/KMonad/Keyboard/IO/Mac/Types.hs, dist/build/KMonad/Keyboard/IO/Mac/Types.o, dist/build/KMonad/Keyboard/IO/Mac/Types.dyn_o )
[21 of 31] Compiling KMonad.Keyboard.IO.Mac.KextSink ( src/KMonad/Keyboard/IO/Mac/KextSink.hs, dist/build/KMonad/Keyboard/IO/Mac/KextSink.o, dist/build/KMonad/Keyboard/IO/Mac/KextSink.dyn_o )
ld: warning: /nix/store/v8zr5bxx9lay8wlchdispmmkzw7bavii-libiconv-50/lib/libiconv.dylib, ignoring unexpected dylib file
ld: warning: /nix/store/v8zr5bxx9lay8wlchdispmmkzw7bavii-libiconv-50/lib/libiconv.dylib, ignoring unexpected dylib file
[22 of 31] Compiling KMonad.Keyboard.IO.Mac.IOKitSource ( src/KMonad/Keyboard/IO/Mac/IOKitSource.hs, dist/build/KMonad/Keyboard/IO/Mac/IOKitSource.o, dist/build/KMonad/Keyboard/IO/Mac/IOKitSource.dyn_o )
ld: warning: /nix/store/v8zr5bxx9lay8wlchdispmmkzw7bavii-libiconv-50/lib/libiconv.dylib, ignoring unexpected dylib file
ld: warning: /nix/store/v8zr5bxx9lay8wlchdispmmkzw7bavii-libiconv-50/lib/libiconv.dylib, ignoring unexpected dylib file
[23 of 31] Compiling KMonad.Args.Types ( src/KMonad/Args/Types.hs, dist/build/KMonad/Args/Types.o, dist/build/KMonad/Args/Types.dyn_o )
[24 of 31] Compiling KMonad.Args.Joiner ( src/KMonad/Args/Joiner.hs, dist/build/KMonad/Args/Joiner.o, dist/build/KMonad/Args/Joiner.dyn_o )
[25 of 31] Compiling KMonad.App.Types ( src/KMonad/App/Types.hs, dist/build/KMonad/App/Types.o, dist/build/KMonad/App/Types.dyn_o )
[26 of 31] Compiling KMonad.Args.Parser ( src/KMonad/Args/Parser.hs, dist/build/KMonad/Args/Parser.o, dist/build/KMonad/Args/Parser.dyn_o )
[27 of 31] Compiling Paths_kmonad     ( dist/build/autogen/Paths_kmonad.hs, dist/build/Paths_kmonad.o, dist/build/Paths_kmonad.dyn_o )
[28 of 31] Compiling KMonad.Args.Cmd  ( src/KMonad/Args/Cmd.hs, dist/build/KMonad/Args/Cmd.o, dist/build/KMonad/Args/Cmd.dyn_o )
[29 of 31] Compiling KMonad.Args      ( src/KMonad/Args.hs, dist/build/KMonad/Args.o, dist/build/KMonad/Args.dyn_o )
[30 of 31] Compiling KMonad.App.Main  ( src/KMonad/App/Main.hs, dist/build/KMonad/App/Main.o, dist/build/KMonad/App/Main.dyn_o )
[31 of 31] Compiling KMonad.App       ( src/KMonad/App.hs, dist/build/KMonad/App.o, dist/build/KMonad/App.dyn_o )
/nix/store/swi24jhphnkwbwnwlknb7m147s4ix99x-cctools-binutils-darwin-949.0.1/bin/ranlib: file: dist/build/libHSkmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u-ghc8.10.7.a(Win32Utils.o) has no symbols
/nix/store/swi24jhphnkwbwnwlknb7m147s4ix99x-cctools-binutils-darwin-949.0.1/bin/ranlib: file: dist/build/libHSkmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u-ghc8.10.7.a(consUtils.o) has no symbols
/nix/store/swi24jhphnkwbwnwlknb7m147s4ix99x-cctools-binutils-darwin-949.0.1/bin/ranlib: file: dist/build/libHSkmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u-ghc8.10.7.a(longlong.o) has no symbols
/nix/store/swi24jhphnkwbwnwlknb7m147s4ix99x-cctools-binutils-darwin-949.0.1/bin/ranlib: file: dist/build/libHSkmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u-ghc8.10.7.a(Disassembler.o) has no symbols
/nix/store/swi24jhphnkwbwnwlknb7m147s4ix99x-cctools-binutils-darwin-949.0.1/bin/ranlib: file: dist/build/libHSkmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u-ghc8.10.7.a(LdvProfile.o) has no symbols
/nix/store/swi24jhphnkwbwnwlknb7m147s4ix99x-cctools-binutils-darwin-949.0.1/bin/ranlib: file: dist/build/libHSkmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u-ghc8.10.7.a(OldARMAtomic.o) has no symbols
/nix/store/swi24jhphnkwbwnwlknb7m147s4ix99x-cctools-binutils-darwin-949.0.1/bin/ranlib: file: dist/build/libHSkmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u-ghc8.10.7.a(ProfilerReport.o) has no symbols
/nix/store/swi24jhphnkwbwnwlknb7m147s4ix99x-cctools-binutils-darwin-949.0.1/bin/ranlib: file: dist/build/libHSkmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u-ghc8.10.7.a(ProfilerReportJson.o) has no symbols
/nix/store/swi24jhphnkwbwnwlknb7m147s4ix99x-cctools-binutils-darwin-949.0.1/bin/ranlib: file: dist/build/libHSkmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u-ghc8.10.7.a(Profiling.o) has no symbols
/nix/store/swi24jhphnkwbwnwlknb7m147s4ix99x-cctools-binutils-darwin-949.0.1/bin/ranlib: file: dist/build/libHSkmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u-ghc8.10.7.a(RetainerProfile.o) has no symbols
/nix/store/swi24jhphnkwbwnwlknb7m147s4ix99x-cctools-binutils-darwin-949.0.1/bin/ranlib: file: dist/build/libHSkmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u-ghc8.10.7.a(RetainerSet.o) has no symbols
/nix/store/swi24jhphnkwbwnwlknb7m147s4ix99x-cctools-binutils-darwin-949.0.1/bin/ranlib: file: dist/build/libHSkmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u-ghc8.10.7.a(RtsDllMain.o) has no symbols
/nix/store/swi24jhphnkwbwnwlknb7m147s4ix99x-cctools-binutils-darwin-949.0.1/bin/ranlib: file: dist/build/libHSkmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u-ghc8.10.7.a(SpinLock.o) has no symbols
/nix/store/swi24jhphnkwbwnwlknb7m147s4ix99x-cctools-binutils-darwin-949.0.1/bin/ranlib: file: dist/build/libHSkmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u-ghc8.10.7.a(Trace.o) has no symbols
/nix/store/swi24jhphnkwbwnwlknb7m147s4ix99x-cctools-binutils-darwin-949.0.1/bin/ranlib: file: dist/build/libHSkmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u-ghc8.10.7.a(TraverseHeap.o) has no symbols
/nix/store/swi24jhphnkwbwnwlknb7m147s4ix99x-cctools-binutils-darwin-949.0.1/bin/ranlib: file: dist/build/libHSkmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u-ghc8.10.7.a(Evac_thr.o) has no symbols
/nix/store/swi24jhphnkwbwnwlknb7m147s4ix99x-cctools-binutils-darwin-949.0.1/bin/ranlib: file: dist/build/libHSkmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u-ghc8.10.7.a(Sanity.o) has no symbols
/nix/store/swi24jhphnkwbwnwlknb7m147s4ix99x-cctools-binutils-darwin-949.0.1/bin/ranlib: file: dist/build/libHSkmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u-ghc8.10.7.a(Scav_thr.o) has no symbols
/nix/store/swi24jhphnkwbwnwlknb7m147s4ix99x-cctools-binutils-darwin-949.0.1/bin/ranlib: file: dist/build/libHSkmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u-ghc8.10.7.a(Elf.o) has no symbols
/nix/store/swi24jhphnkwbwnwlknb7m147s4ix99x-cctools-binutils-darwin-949.0.1/bin/ranlib: file: dist/build/libHSkmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u-ghc8.10.7.a(PEi386.o) has no symbols
/nix/store/swi24jhphnkwbwnwlknb7m147s4ix99x-cctools-binutils-darwin-949.0.1/bin/ranlib: file: dist/build/libHSkmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u-ghc8.10.7.a(elf_got.o) has no symbols
/nix/store/swi24jhphnkwbwnwlknb7m147s4ix99x-cctools-binutils-darwin-949.0.1/bin/ranlib: file: dist/build/libHSkmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u-ghc8.10.7.a(elf_plt.o) has no symbols
/nix/store/swi24jhphnkwbwnwlknb7m147s4ix99x-cctools-binutils-darwin-949.0.1/bin/ranlib: file: dist/build/libHSkmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u-ghc8.10.7.a(elf_plt_aarch64.o) has no symbols
/nix/store/swi24jhphnkwbwnwlknb7m147s4ix99x-cctools-binutils-darwin-949.0.1/bin/ranlib: file: dist/build/libHSkmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u-ghc8.10.7.a(elf_plt_arm.o) has no symbols
/nix/store/swi24jhphnkwbwnwlknb7m147s4ix99x-cctools-binutils-darwin-949.0.1/bin/ranlib: file: dist/build/libHSkmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u-ghc8.10.7.a(elf_reloc.o) has no symbols
/nix/store/swi24jhphnkwbwnwlknb7m147s4ix99x-cctools-binutils-darwin-949.0.1/bin/ranlib: file: dist/build/libHSkmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u-ghc8.10.7.a(elf_reloc_aarch64.o) has no symbols
/nix/store/swi24jhphnkwbwnwlknb7m147s4ix99x-cctools-binutils-darwin-949.0.1/bin/ranlib: file: dist/build/libHSkmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u-ghc8.10.7.a(elf_util.o) has no symbols
/nix/store/swi24jhphnkwbwnwlknb7m147s4ix99x-cctools-binutils-darwin-949.0.1/bin/ranlib: file: dist/build/libHSkmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u-ghc8.10.7.a(plt.o) has no symbols
/nix/store/swi24jhphnkwbwnwlknb7m147s4ix99x-cctools-binutils-darwin-949.0.1/bin/ranlib: file: dist/build/libHSkmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u-ghc8.10.7.a(plt_aarch64.o) has no symbols
Preprocessing executable 'kmonad' for kmonad-0.4.1..
Building executable 'kmonad' for kmonad-0.4.1..
[1 of 1] Compiling Main             ( app/Main.hs, dist/build/kmonad/kmonad-tmp/Main.o )
Linking dist/build/kmonad/kmonad ...
Undefined symbols for architecture x86_64:
  "_grab_kb", referenced from:
      _Lc3u8q_info in libHSkmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u.a(IOKitSource.o)
      _Lc3u8Y_info in libHSkmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u.a(IOKitSource.o)
  "_release_kb", referenced from:
      _Lc3u7A_info in libHSkmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u.a(IOKitSource.o)
  "_send_key", referenced from:
      _Lc3ub3_info in libHSkmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u.a(KextSink.o)
  "_wait_key", referenced from:
      _Lc3tZz_info in libHSkmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u.a(IOKitSource.o)
ld: symbol(s) not found for architecture x86_64
clang-7: error: linker command failed with exit code 1 (use -v to see invocation)
`cc' failed in phase `Linker'. (Exit code: 1)
error: builder for '/nix/store/26gb6grn9h2ip4gn35wlw324g9h7b6l2-kmonad-0.4.1.drv' failed with exit code 1;
       last 10 log lines:
       >       _Lc3u8Y_info in libHSkmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u.a(IOKitSource.o)
       >   "_release_kb", referenced from:
       >       _Lc3u7A_info in libHSkmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u.a(IOKitSource.o)
       >   "_send_key", referenced from:
       >       _Lc3ub3_info in libHSkmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u.a(KextSink.o)
       >   "_wait_key", referenced from:
       >       _Lc3tZz_info in libHSkmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u.a(IOKitSource.o)
       > ld: symbol(s) not found for architecture x86_64
       > clang-7: error: linker command failed with exit code 1 (use -v to see invocation)
       > `cc' failed in phase `Linker'. (Exit code: 1)
       For full logs, run 'nix log /nix/store/26gb6grn9h2ip4gn35wlw324g9h7b6l2-kmonad-0.4.1.drv'.

This error output is almost the exact same as the output of running nix-build with an edited kmonad.cabal file:

error: builder for '/nix/store/jrn0v0ry6hpa1ar0390klh0iddf75lbs-kmonad-0.4.1.drv' failed with exit code 1;
       last 10 log lines:
       >       _Lc3uba_info in libHSkmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u.a(IOKitSource.o)
       >   "_release_kb", referenced from:
       >       _Lc3u8N_info in libHSkmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u.a(IOKitSource.o)
       >   "_send_key", referenced from:
       >       _Lc3u9I_info in libHSkmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u.a(KextSink.o)
       >   "_wait_key", referenced from:
       >       _Lc3u0t_info in libHSkmonad-0.4.1-DR4SCKjM2a6I2xpwYFeY6u.a(IOKitSource.o)
       > ld: symbol(s) not found for architecture x86_64
       > clang-7: error: linker command failed with exit code 1 (use -v to see invocation)
       > `cc' failed in phase `Linker'. (Exit code: 1)
       For full logs, run 'nix log /nix/store/jrn0v0ry6hpa1ar0390klh0iddf75lbs-kmonad-0.4.1.drv'.
thoelze1 commented 2 years ago

I got it building (with 2 serious warnings) from this default.nix:

this derivation will be built:
  /nix/store/8zl4dd9nzlfly1lvs21bzgff1c23wp26-kmonad-0.4.1.drv
building '/nix/store/8zl4dd9nzlfly1lvs21bzgff1c23wp26-kmonad-0.4.1.drv'...
setupCompilerEnvironmentPhase
Build with /nix/store/30m0a5bm5y76bi5mr1nbk1ahyvqrzdxx-ghc-8.10.7.
unpacking sources
unpacking source archive /nix/store/issgrhw0v1k51l9j7nn2gqaf60djcb6r-kmonad
source root is kmonad
patching sources
compileBuildDriverPhase
setupCompileFlags: -package-db=/private/tmp/nix-build-kmonad-0.4.1.drv-0/setup-package.conf.d -j4 -threaded -rtsopts
[1 of 1] Compiling Main             ( /nix/store/4mdp8nhyfddh7bllbi7xszz7k9955n79-Setup.hs, /private/tmp/nix-build-kmonad-0.4.1.drv-0/Main.o )
Linking Setup ...
configuring
configureFlags: --verbose --prefix=/nix/store/2k616gx2mwfpblrc8q8fxqclra7fpdjb-kmonad-0.4.1 --libdir=$prefix/lib/$compiler --libsubdir=$abi/$libname --with-gcc=clang --package-db=/private/tmp/nix-build-kmonad-0.4.1.drv-0/package.conf.d --ghc-options=-j4 --disable-split-objs --enable-library-profiling --profiling-detail=exported-functions --disable-profiling --enable-shared --disable-coverage --enable-static --disable-executable-dynamic --enable-tests --disable-benchmarks --enable-library-vanilla --disable-library-for-ghci -fkext --extra-include-dirs=c_src/mac/Karabiner-VirtualHIDDevice/dist/include --extra-include-dirs=/nix/store/hpi437938sayfqc64x3pdwni32zwjn2b-libcxx-7.1.0-dev/include --extra-lib-dirs=/nix/store/jjfiw9s3g7qbz6y96v8vfb4282rg4791-libcxx-7.1.0/lib --extra-include-dirs=/nix/store/slbi8ncmnpf4sdwizqa9shzkiqkp0hhw-libcxxabi-7.1.0-dev/include --extra-lib-dirs=/nix/store/r92p16irq0w4flscy19h3cs0yyzcz8y0-libcxxabi-7.1.0/lib --extra-include-dirs=/nix/store/hw6l078d2w3c05219n2f582kj6m4cv9j-compiler-rt-libc-7.1.0-dev/include --extra-lib-dirs=/nix/store/fc2cx0mp8hc3zs5y49nc332dmx246drc-compiler-rt-libc-7.1.0/lib --extra-lib-dirs=/nix/store/rq6iahdbacw3gzyf4h7b5j77i5amkya6-ncurses-6.2/lib --extra-lib-dirs=/nix/store/ss121ji3cz3xb5gdxqshf85qv7iq8byr-libffi-3.4.2/lib --extra-lib-dirs=/nix/store/dmr9m00rpcw6jr9vcvpgrllwlgchcxnn-gmp-6.2.1/lib --extra-include-dirs=/nix/store/v8zr5bxx9lay8wlchdispmmkzw7bavii-libiconv-50/include --extra-lib-dirs=/nix/store/v8zr5bxx9lay8wlchdispmmkzw7bavii-libiconv-50/lib --extra-framework-dirs=/nix/store/cv7v8m3ixz9x3f7pfcl051mg7aykfk4i-IOKit-/Library/Frameworks --extra-lib-dirs=/nix/store/x90pcg5hlaa9bz56q2sws1cah446fmh0-git-2.33.0/lib --extra-framework-dirs=/nix/store/cv7v8m3ixz9x3f7pfcl051mg7aykfk4i-IOKit-/Library/Frameworks --extra-framework-dirs=/nix/store/dimrkizsipd8iakwswlh92s8fi96r63l-swift-corefoundation/Library/Frameworks
Using Parsec parser
Configuring kmonad-0.4.1...
Flags chosen: dext=False, kext=True
Dependency base -any: using base-4.14.3.0
Dependency cereal -any: using cereal-0.5.8.1
Dependency lens -any: using lens-4.19.2
Dependency megaparsec -any: using megaparsec-9.0.1
Dependency mtl -any: using mtl-2.2.2
Dependency optparse-applicative -any: using optparse-applicative-0.16.1.0
Dependency resourcet -any: using resourcet-1.2.4.3
Dependency rio -any: using rio-0.1.21.0
Dependency template-haskell -any: using template-haskell-2.16.0.0
Dependency time -any: using time-1.9.3
Dependency unix -any: using unix-2.7.2.2
Dependency unliftio -any: using unliftio-0.2.20
Dependency base -any: using base-4.14.3.0
Dependency kmonad -any: using kmonad-0.4.1
Source component graph:
    component lib
    component exe:kmonad dependency lib
Configured component graph:
    component kmonad-0.4.1-4mtT0Ku6A0SEsXlhglzvvt
        include base-4.14.3.0
        include cereal-0.5.8.1-Ij4dcFjPd1nCU6XwOHJYdr
        include lens-4.19.2-GPsFzMtehND7AzjK72zfbM
        include megaparsec-9.0.1-8lE0JlfeNt6GZI7ruExQp1
        include mtl-2.2.2
        include optparse-applicative-0.16.1.0-5A9rkiUCbgfzMUVUREbcC
        include resourcet-1.2.4.3-Kf696FyhTcA7yjNZhMJjsD
        include rio-0.1.21.0-AeHgOl34Nc4CygpapZPvbl
        include template-haskell-2.16.0.0
        include time-1.9.3
        include unix-2.7.2.2
        include unliftio-0.2.20-4vVfrVddWwYB3zs2C2xbRI
    component kmonad-0.4.1-7zvwp2BXn10JJlmubuptNZ-kmonad
        include base-4.14.3.0
        include kmonad-0.4.1-4mtT0Ku6A0SEsXlhglzvvt
Linked component graph:
    unit kmonad-0.4.1-4mtT0Ku6A0SEsXlhglzvvt
        include base-4.14.3.0
        include cereal-0.5.8.1-Ij4dcFjPd1nCU6XwOHJYdr
        include lens-4.19.2-GPsFzMtehND7AzjK72zfbM
        include megaparsec-9.0.1-8lE0JlfeNt6GZI7ruExQp1
        include mtl-2.2.2
        include optparse-applicative-0.16.1.0-5A9rkiUCbgfzMUVUREbcC
        include resourcet-1.2.4.3-Kf696FyhTcA7yjNZhMJjsD
        include rio-0.1.21.0-AeHgOl34Nc4CygpapZPvbl
        include template-haskell-2.16.0.0
        include time-1.9.3
        include unix-2.7.2.2
        include unliftio-0.2.20-4vVfrVddWwYB3zs2C2xbRI
        KMonad.App=kmonad-0.4.1-4mtT0Ku6A0SEsXlhglzvvt:KMonad.App,KMonad.App.Main=kmonad-0.4.1-4mtT0Ku6A0SEsXlhglzvvt:KMonad.App.Main,KMonad.App.Types=kmonad-0.4.1-4mtT0Ku6A0SEsXlhglzvvt:KMonad.App.Types,KMonad.Args=kmonad-0.4.1-4mtT0Ku6A0SEsXlhglzvvt:KMonad.Args,KMonad.Args.Cmd=kmonad-0.4.1-4mtT0Ku6A0SEsXlhglzvvt:KMonad.Args.Cmd,KMonad.Args.Joiner=kmonad-0.4.1-4mtT0Ku6A0SEsXlhglzvvt:KMonad.Args.Joiner,KMonad.Args.Parser=kmonad-0.4.1-4mtT0Ku6A0SEsXlhglzvvt:KMonad.Args.Parser,KMonad.Args.TH=kmonad-0.4.1-4mtT0Ku6A0SEsXlhglzvvt:KMonad.Args.TH,KMonad.Args.Types=kmonad-0.4.1-4mtT0Ku6A0SEsXlhglzvvt:KMonad.Args.Types,KMonad.Keyboard=kmonad-0.4.1-4mtT0Ku6A0SEsXlhglzvvt:KMonad.Keyboard,KMonad.Keyboard.ComposeSeq=kmonad-0.4.1-4mtT0Ku6A0SEsXlhglzvvt:KMonad.Keyboard.ComposeSeq,KMonad.Keyboard.IO=kmonad-0.4.1-4mtT0Ku6A0SEsXlhglzvvt:KMonad.Keyboard.IO,KMonad.Keyboard.IO.Mac.IOKitSource=kmonad-0.4.1-4mtT0Ku6A0SEsXlhglzvvt:KMonad.Keyboard.IO.Mac.IOKitSource,KMonad.Keyboard.IO.Mac.KextSink=kmonad-0.4.1-4mtT0Ku6A0SEsXlhglzvvt:KMonad.Keyboard.IO.Mac.KextSink,KMonad.Keyboard.IO.Mac.Types=kmonad-0.4.1-4mtT0Ku6A0SEsXlhglzvvt:KMonad.Keyboard.IO.Mac.Types,KMonad.Keyboard.Keycode=kmonad-0.4.1-4mtT0Ku6A0SEsXlhglzvvt:KMonad.Keyboard.Keycode,KMonad.Keyboard.Ops=kmonad-0.4.1-4mtT0Ku6A0SEsXlhglzvvt:KMonad.Keyboard.Ops,KMonad.Keyboard.Types=kmonad-0.4.1-4mtT0Ku6A0SEsXlhglzvvt:KMonad.Keyboard.Types,KMonad.Model=kmonad-0.4.1-4mtT0Ku6A0SEsXlhglzvvt:KMonad.Model,KMonad.Model.Action=kmonad-0.4.1-4mtT0Ku6A0SEsXlhglzvvt:KMonad.Model.Action,KMonad.Model.BEnv=kmonad-0.4.1-4mtT0Ku6A0SEsXlhglzvvt:KMonad.Model.BEnv,KMonad.Model.Button=kmonad-0.4.1-4mtT0Ku6A0SEsXlhglzvvt:KMonad.Model.Button,KMonad.Model.Dispatch=kmonad-0.4.1-4mtT0Ku6A0SEsXlhglzvvt:KMonad.Model.Dispatch,KMonad.Model.Hooks=kmonad-0.4.1-4mtT0Ku6A0SEsXlhglzvvt:KMonad.Model.Hooks,KMonad.Model.Keymap=kmonad-0.4.1-4mtT0Ku6A0SEsXlhglzvvt:KMonad.Model.Keymap,KMonad.Model.Sluice=kmonad-0.4.1-4mtT0Ku6A0SEsXlhglzvvt:KMonad.Model.Sluice,KMonad.Prelude=kmonad-0.4.1-4mtT0Ku6A0SEsXlhglzvvt:KMonad.Prelude,KMonad.Util=kmonad-0.4.1-4mtT0Ku6A0SEsXlhglzvvt:KMonad.Util,KMonad.Util.LayerStack=kmonad-0.4.1-4mtT0Ku6A0SEsXlhglzvvt:KMonad.Util.LayerStack,KMonad.Util.MultiMap=kmonad-0.4.1-4mtT0Ku6A0SEsXlhglzvvt:KMonad.Util.MultiMap,Paths_kmonad=kmonad-0.4.1-4mtT0Ku6A0SEsXlhglzvvt:Paths_kmonad
    unit kmonad-0.4.1-7zvwp2BXn10JJlmubuptNZ-kmonad
        include base-4.14.3.0
        include kmonad-0.4.1-4mtT0Ku6A0SEsXlhglzvvt
Ready component graph:
    definite kmonad-0.4.1-4mtT0Ku6A0SEsXlhglzvvt
        depends base-4.14.3.0
        depends cereal-0.5.8.1-Ij4dcFjPd1nCU6XwOHJYdr
        depends lens-4.19.2-GPsFzMtehND7AzjK72zfbM
        depends megaparsec-9.0.1-8lE0JlfeNt6GZI7ruExQp1
        depends mtl-2.2.2
        depends optparse-applicative-0.16.1.0-5A9rkiUCbgfzMUVUREbcC
        depends resourcet-1.2.4.3-Kf696FyhTcA7yjNZhMJjsD
        depends rio-0.1.21.0-AeHgOl34Nc4CygpapZPvbl
        depends template-haskell-2.16.0.0
        depends time-1.9.3
        depends unix-2.7.2.2
        depends unliftio-0.2.20-4vVfrVddWwYB3zs2C2xbRI
    definite kmonad-0.4.1-7zvwp2BXn10JJlmubuptNZ-kmonad
        depends base-4.14.3.0
        depends kmonad-0.4.1-4mtT0Ku6A0SEsXlhglzvvt
Using Cabal-3.2.1.0 compiled by ghc-8.10
Using compiler: ghc-8.10.7
Using install prefix: /nix/store/2k616gx2mwfpblrc8q8fxqclra7fpdjb-kmonad-0.4.1
Executables installed in:
/nix/store/2k616gx2mwfpblrc8q8fxqclra7fpdjb-kmonad-0.4.1/bin
Libraries installed in:
/nix/store/2k616gx2mwfpblrc8q8fxqclra7fpdjb-kmonad-0.4.1/lib/ghc-8.10.7/x86_64-osx-ghc-8.10.7/kmonad-0.4.1-4mtT0Ku6A0SEsXlhglzvvt
Dynamic Libraries installed in:
/nix/store/2k616gx2mwfpblrc8q8fxqclra7fpdjb-kmonad-0.4.1/lib/ghc-8.10.7/x86_64-osx-ghc-8.10.7
Private executables installed in:
/nix/store/2k616gx2mwfpblrc8q8fxqclra7fpdjb-kmonad-0.4.1/libexec/x86_64-osx-ghc-8.10.7/kmonad-0.4.1
Data files installed in:
/nix/store/2k616gx2mwfpblrc8q8fxqclra7fpdjb-kmonad-0.4.1/share/x86_64-osx-ghc-8.10.7/kmonad-0.4.1
Documentation installed in:
/nix/store/2k616gx2mwfpblrc8q8fxqclra7fpdjb-kmonad-0.4.1/share/doc/x86_64-osx-ghc-8.10.7/kmonad-0.4.1
Configuration files installed in:
/nix/store/2k616gx2mwfpblrc8q8fxqclra7fpdjb-kmonad-0.4.1/etc
No alex found
Using ar found on system at:
/nix/store/swi24jhphnkwbwnwlknb7m147s4ix99x-cctools-binutils-darwin-949.0.1/bin/ar
No c2hs found
No cpphs found
No doctest found
Using gcc version 4.2.1 given by user at:
/nix/store/3v5asy4nb2yqkb3asgvpv6ya7nzh09yh-clang-wrapper-7.1.0/bin/clang
Using ghc version 8.10.7 found on system at:
/nix/store/30m0a5bm5y76bi5mr1nbk1ahyvqrzdxx-ghc-8.10.7/bin/ghc
Using ghc-pkg version 8.10.7 found on system at:
/nix/store/30m0a5bm5y76bi5mr1nbk1ahyvqrzdxx-ghc-8.10.7/bin/ghc-pkg
No ghcjs found
No ghcjs-pkg found
No greencard found
Using haddock version 2.24.2 found on system at:
/nix/store/30m0a5bm5y76bi5mr1nbk1ahyvqrzdxx-ghc-8.10.7/bin/haddock
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.68 found on system at:
/nix/store/30m0a5bm5y76bi5mr1nbk1ahyvqrzdxx-ghc-8.10.7/bin/hpc
Using hsc2hs version 0.68.7 found on system at:
/nix/store/30m0a5bm5y76bi5mr1nbk1ahyvqrzdxx-ghc-8.10.7/bin/hsc2hs
Using hscolour version 1.24 found on system at:
/nix/store/2hxfv07miv4b8h61za2fzi81c193g1ff-hscolour-1.24.4/bin/HsColour
No jhc found
Using ld found on system at:
/nix/store/0mdzl24li08cq8qq8hbp8m1xh03zpa78-cctools-binutils-darwin-wrapper-949.0.1/bin/ld
No pkg-config found
Using runghc version 8.10.7 found on system at:
/nix/store/30m0a5bm5y76bi5mr1nbk1ahyvqrzdxx-ghc-8.10.7/bin/runghc
Using strip found on system at:
/nix/store/swi24jhphnkwbwnwlknb7m147s4ix99x-cctools-binutils-darwin-949.0.1/bin/strip
Using tar found on system at:
/nix/store/c0b40d8l51rj4in7wbnvlgzky1r75xk1-gnutar-1.34/bin/tar
No uhc found
building
Preprocessing library for kmonad-0.4.1..
Building library for kmonad-0.4.1..
[ 1 of 31] Compiling KMonad.Prelude   ( src/KMonad/Prelude.hs, dist/build/KMonad/Prelude.o, dist/build/KMonad/Prelude.dyn_o )
[ 2 of 31] Compiling KMonad.Keyboard.ComposeSeq ( src/KMonad/Keyboard/ComposeSeq.hs, dist/build/KMonad/Keyboard/ComposeSeq.o, dist/build/KMonad/Keyboard/ComposeSeq.dyn_o )
[ 3 of 31] Compiling KMonad.Args.TH   ( src/KMonad/Args/TH.hs, dist/build/KMonad/Args/TH.o, dist/build/KMonad/Args/TH.dyn_o )
[ 4 of 31] Compiling KMonad.Util      ( src/KMonad/Util.hs, dist/build/KMonad/Util.o, dist/build/KMonad/Util.dyn_o )
[ 5 of 31] Compiling KMonad.Util.LayerStack ( src/KMonad/Util/LayerStack.hs, dist/build/KMonad/Util/LayerStack.o, dist/build/KMonad/Util/LayerStack.dyn_o )
[ 6 of 31] Compiling KMonad.Util.MultiMap ( src/KMonad/Util/MultiMap.hs, dist/build/KMonad/Util/MultiMap.o, dist/build/KMonad/Util/MultiMap.dyn_o )
[ 7 of 31] Compiling KMonad.Keyboard.Keycode ( src/KMonad/Keyboard/Keycode.hs, dist/build/KMonad/Keyboard/Keycode.o, dist/build/KMonad/Keyboard/Keycode.dyn_o )
[ 8 of 31] Compiling KMonad.Keyboard.Types ( src/KMonad/Keyboard/Types.hs, dist/build/KMonad/Keyboard/Types.o, dist/build/KMonad/Keyboard/Types.dyn_o )
[ 9 of 31] Compiling KMonad.Keyboard.IO ( src/KMonad/Keyboard/IO.hs, dist/build/KMonad/Keyboard/IO.o, dist/build/KMonad/Keyboard/IO.dyn_o )
[10 of 31] Compiling KMonad.Keyboard.Ops ( src/KMonad/Keyboard/Ops.hs, dist/build/KMonad/Keyboard/Ops.o, dist/build/KMonad/Keyboard/Ops.dyn_o )
[11 of 31] Compiling KMonad.Keyboard  ( src/KMonad/Keyboard.hs, dist/build/KMonad/Keyboard.o, dist/build/KMonad/Keyboard.dyn_o )
[12 of 31] Compiling KMonad.Model.Sluice ( src/KMonad/Model/Sluice.hs, dist/build/KMonad/Model/Sluice.o, dist/build/KMonad/Model/Sluice.dyn_o )
[13 of 31] Compiling KMonad.Model.Dispatch ( src/KMonad/Model/Dispatch.hs, dist/build/KMonad/Model/Dispatch.o, dist/build/KMonad/Model/Dispatch.dyn_o )
[14 of 31] Compiling KMonad.Model.Action ( src/KMonad/Model/Action.hs, dist/build/KMonad/Model/Action.o, dist/build/KMonad/Model/Action.dyn_o )
[15 of 31] Compiling KMonad.Model.Hooks ( src/KMonad/Model/Hooks.hs, dist/build/KMonad/Model/Hooks.o, dist/build/KMonad/Model/Hooks.dyn_o )
[16 of 31] Compiling KMonad.Model.Button ( src/KMonad/Model/Button.hs, dist/build/KMonad/Model/Button.o, dist/build/KMonad/Model/Button.dyn_o )
[17 of 31] Compiling KMonad.Model.BEnv ( src/KMonad/Model/BEnv.hs, dist/build/KMonad/Model/BEnv.o, dist/build/KMonad/Model/BEnv.dyn_o )
[18 of 31] Compiling KMonad.Model.Keymap ( src/KMonad/Model/Keymap.hs, dist/build/KMonad/Model/Keymap.o, dist/build/KMonad/Model/Keymap.dyn_o )
[19 of 31] Compiling KMonad.Model     ( src/KMonad/Model.hs, dist/build/KMonad/Model.o, dist/build/KMonad/Model.dyn_o )
[20 of 31] Compiling KMonad.Keyboard.IO.Mac.Types ( src/KMonad/Keyboard/IO/Mac/Types.hs, dist/build/KMonad/Keyboard/IO/Mac/Types.o, dist/build/KMonad/Keyboard/IO/Mac/Types.dyn_o )
[21 of 31] Compiling KMonad.Keyboard.IO.Mac.KextSink ( src/KMonad/Keyboard/IO/Mac/KextSink.hs, dist/build/KMonad/Keyboard/IO/Mac/KextSink.o, dist/build/KMonad/Keyboard/IO/Mac/KextSink.dyn_o )
ld: warning: /nix/store/v8zr5bxx9lay8wlchdispmmkzw7bavii-libiconv-50/lib/libiconv.dylib, ignoring unexpected dylib file
ld: warning: /nix/store/v8zr5bxx9lay8wlchdispmmkzw7bavii-libiconv-50/lib/libiconv.dylib, ignoring unexpected dylib file
[22 of 31] Compiling KMonad.Keyboard.IO.Mac.IOKitSource ( src/KMonad/Keyboard/IO/Mac/IOKitSource.hs, dist/build/KMonad/Keyboard/IO/Mac/IOKitSource.o, dist/build/KMonad/Keyboard/IO/Mac/IOKitSource.dyn_o )
ld: warning: /nix/store/v8zr5bxx9lay8wlchdispmmkzw7bavii-libiconv-50/lib/libiconv.dylib, ignoring unexpected dylib file
ld: warning: /nix/store/v8zr5bxx9lay8wlchdispmmkzw7bavii-libiconv-50/lib/libiconv.dylib, ignoring unexpected dylib file
[23 of 31] Compiling KMonad.Args.Types ( src/KMonad/Args/Types.hs, dist/build/KMonad/Args/Types.o, dist/build/KMonad/Args/Types.dyn_o )
[24 of 31] Compiling KMonad.Args.Joiner ( src/KMonad/Args/Joiner.hs, dist/build/KMonad/Args/Joiner.o, dist/build/KMonad/Args/Joiner.dyn_o )
[25 of 31] Compiling KMonad.App.Types ( src/KMonad/App/Types.hs, dist/build/KMonad/App/Types.o, dist/build/KMonad/App/Types.dyn_o )
[26 of 31] Compiling KMonad.Args.Parser ( src/KMonad/Args/Parser.hs, dist/build/KMonad/Args/Parser.o, dist/build/KMonad/Args/Parser.dyn_o )
[27 of 31] Compiling Paths_kmonad     ( dist/build/autogen/Paths_kmonad.hs, dist/build/Paths_kmonad.o, dist/build/Paths_kmonad.dyn_o )
[28 of 31] Compiling KMonad.Args.Cmd  ( src/KMonad/Args/Cmd.hs, dist/build/KMonad/Args/Cmd.o, dist/build/KMonad/Args/Cmd.dyn_o )
[29 of 31] Compiling KMonad.Args      ( src/KMonad/Args.hs, dist/build/KMonad/Args.o, dist/build/KMonad/Args.dyn_o )
[30 of 31] Compiling KMonad.App.Main  ( src/KMonad/App/Main.hs, dist/build/KMonad/App/Main.o, dist/build/KMonad/App/Main.dyn_o )
[31 of 31] Compiling KMonad.App       ( src/KMonad/App.hs, dist/build/KMonad/App.o, dist/build/KMonad/App.dyn_o )
[ 1 of 31] Compiling KMonad.Prelude   ( src/KMonad/Prelude.hs, dist/build/KMonad/Prelude.p_o )
ld: warning: /nix/store/v8zr5bxx9lay8wlchdispmmkzw7bavii-libiconv-50/lib/libiconv.dylib, ignoring unexpected dylib file
[ 2 of 31] Compiling KMonad.Keyboard.ComposeSeq ( src/KMonad/Keyboard/ComposeSeq.hs, dist/build/KMonad/Keyboard/ComposeSeq.p_o )
ld: warning: /nix/store/v8zr5bxx9lay8wlchdispmmkzw7bavii-libiconv-50/lib/libiconv.dylib, ignoring unexpected dylib file
[ 3 of 31] Compiling KMonad.Args.TH   ( src/KMonad/Args/TH.hs, dist/build/KMonad/Args/TH.p_o )
ld: warning: /nix/store/v8zr5bxx9lay8wlchdispmmkzw7bavii-libiconv-50/lib/libiconv.dylib, ignoring unexpected dylib file
[ 4 of 31] Compiling KMonad.Util      ( src/KMonad/Util.hs, dist/build/KMonad/Util.p_o )
ld: warning: /nix/store/v8zr5bxx9lay8wlchdispmmkzw7bavii-libiconv-50/lib/libiconv.dylib, ignoring unexpected dylib file
[ 5 of 31] Compiling KMonad.Util.LayerStack ( src/KMonad/Util/LayerStack.hs, dist/build/KMonad/Util/LayerStack.p_o )
ld: warning: /nix/store/v8zr5bxx9lay8wlchdispmmkzw7bavii-libiconv-50/lib/libiconv.dylib, ignoring unexpected dylib file
[ 6 of 31] Compiling KMonad.Util.MultiMap ( src/KMonad/Util/MultiMap.hs, dist/build/KMonad/Util/MultiMap.p_o )
ld: warning: /nix/store/v8zr5bxx9lay8wlchdispmmkzw7bavii-libiconv-50/lib/libiconv.dylib, ignoring unexpected dylib file
[ 7 of 31] Compiling KMonad.Keyboard.Keycode ( src/KMonad/Keyboard/Keycode.hs, dist/build/KMonad/Keyboard/Keycode.p_o )
ld: warning: /nix/store/v8zr5bxx9lay8wlchdispmmkzw7bavii-libiconv-50/lib/libiconv.dylib, ignoring unexpected dylib file
[ 8 of 31] Compiling KMonad.Keyboard.Types ( src/KMonad/Keyboard/Types.hs, dist/build/KMonad/Keyboard/Types.p_o )
ld: warning: /nix/store/v8zr5bxx9lay8wlchdispmmkzw7bavii-libiconv-50/lib/libiconv.dylib, ignoring unexpected dylib file
[ 9 of 31] Compiling KMonad.Keyboard.IO ( src/KMonad/Keyboard/IO.hs, dist/build/KMonad/Keyboard/IO.p_o )
ld: warning: /nix/store/v8zr5bxx9lay8wlchdispmmkzw7bavii-libiconv-50/lib/libiconv.dylib, ignoring unexpected dylib file
[10 of 31] Compiling KMonad.Keyboard.Ops ( src/KMonad/Keyboard/Ops.hs, dist/build/KMonad/Keyboard/Ops.p_o )
ld: warning: /nix/store/v8zr5bxx9lay8wlchdispmmkzw7bavii-libiconv-50/lib/libiconv.dylib, ignoring unexpected dylib file
[11 of 31] Compiling KMonad.Keyboard  ( src/KMonad/Keyboard.hs, dist/build/KMonad/Keyboard.p_o )
ld: warning: /nix/store/v8zr5bxx9lay8wlchdispmmkzw7bavii-libiconv-50/lib/libiconv.dylib, ignoring unexpected dylib file
[12 of 31] Compiling KMonad.Model.Sluice ( src/KMonad/Model/Sluice.hs, dist/build/KMonad/Model/Sluice.p_o )
ld: warning: /nix/store/v8zr5bxx9lay8wlchdispmmkzw7bavii-libiconv-50/lib/libiconv.dylib, ignoring unexpected dylib file
[13 of 31] Compiling KMonad.Model.Dispatch ( src/KMonad/Model/Dispatch.hs, dist/build/KMonad/Model/Dispatch.p_o )
ld: warning: /nix/store/v8zr5bxx9lay8wlchdispmmkzw7bavii-libiconv-50/lib/libiconv.dylib, ignoring unexpected dylib file
[14 of 31] Compiling KMonad.Model.Action ( src/KMonad/Model/Action.hs, dist/build/KMonad/Model/Action.p_o )
ld: warning: /nix/store/v8zr5bxx9lay8wlchdispmmkzw7bavii-libiconv-50/lib/libiconv.dylib, ignoring unexpected dylib file
[15 of 31] Compiling KMonad.Model.Hooks ( src/KMonad/Model/Hooks.hs, dist/build/KMonad/Model/Hooks.p_o )
ld: warning: /nix/store/v8zr5bxx9lay8wlchdispmmkzw7bavii-libiconv-50/lib/libiconv.dylib, ignoring unexpected dylib file
[16 of 31] Compiling KMonad.Model.Button ( src/KMonad/Model/Button.hs, dist/build/KMonad/Model/Button.p_o )
ld: warning: /nix/store/v8zr5bxx9lay8wlchdispmmkzw7bavii-libiconv-50/lib/libiconv.dylib, ignoring unexpected dylib file
[17 of 31] Compiling KMonad.Model.BEnv ( src/KMonad/Model/BEnv.hs, dist/build/KMonad/Model/BEnv.p_o )
ld: warning: /nix/store/v8zr5bxx9lay8wlchdispmmkzw7bavii-libiconv-50/lib/libiconv.dylib, ignoring unexpected dylib file
[18 of 31] Compiling KMonad.Model.Keymap ( src/KMonad/Model/Keymap.hs, dist/build/KMonad/Model/Keymap.p_o )
ld: warning: /nix/store/v8zr5bxx9lay8wlchdispmmkzw7bavii-libiconv-50/lib/libiconv.dylib, ignoring unexpected dylib file
[19 of 31] Compiling KMonad.Model     ( src/KMonad/Model.hs, dist/build/KMonad/Model.p_o )
ld: warning: /nix/store/v8zr5bxx9lay8wlchdispmmkzw7bavii-libiconv-50/lib/libiconv.dylib, ignoring unexpected dylib file
[20 of 31] Compiling KMonad.Keyboard.IO.Mac.Types ( src/KMonad/Keyboard/IO/Mac/Types.hs, dist/build/KMonad/Keyboard/IO/Mac/Types.p_o )
ld: warning: /nix/store/v8zr5bxx9lay8wlchdispmmkzw7bavii-libiconv-50/lib/libiconv.dylib, ignoring unexpected dylib file
[21 of 31] Compiling KMonad.Keyboard.IO.Mac.KextSink ( src/KMonad/Keyboard/IO/Mac/KextSink.hs, dist/build/KMonad/Keyboard/IO/Mac/KextSink.p_o )
ld: warning: /nix/store/v8zr5bxx9lay8wlchdispmmkzw7bavii-libiconv-50/lib/libiconv.dylib, ignoring unexpected dylib file
[22 of 31] Compiling KMonad.Keyboard.IO.Mac.IOKitSource ( src/KMonad/Keyboard/IO/Mac/IOKitSource.hs, dist/build/KMonad/Keyboard/IO/Mac/IOKitSource.p_o )
ld: warning: /nix/store/v8zr5bxx9lay8wlchdispmmkzw7bavii-libiconv-50/lib/libiconv.dylib, ignoring unexpected dylib file
[23 of 31] Compiling KMonad.Args.Types ( src/KMonad/Args/Types.hs, dist/build/KMonad/Args/Types.p_o )
ld: warning: /nix/store/v8zr5bxx9lay8wlchdispmmkzw7bavii-libiconv-50/lib/libiconv.dylib, ignoring unexpected dylib file
[24 of 31] Compiling KMonad.Args.Joiner ( src/KMonad/Args/Joiner.hs, dist/build/KMonad/Args/Joiner.p_o )
ld: warning: /nix/store/v8zr5bxx9lay8wlchdispmmkzw7bavii-libiconv-50/lib/libiconv.dylib, ignoring unexpected dylib file
[25 of 31] Compiling KMonad.App.Types ( src/KMonad/App/Types.hs, dist/build/KMonad/App/Types.p_o )
ld: warning: /nix/store/v8zr5bxx9lay8wlchdispmmkzw7bavii-libiconv-50/lib/libiconv.dylib, ignoring unexpected dylib file
[26 of 31] Compiling KMonad.Args.Parser ( src/KMonad/Args/Parser.hs, dist/build/KMonad/Args/Parser.p_o )
ld: warning: /nix/store/v8zr5bxx9lay8wlchdispmmkzw7bavii-libiconv-50/lib/libiconv.dylib, ignoring unexpected dylib file
[27 of 31] Compiling Paths_kmonad     ( dist/build/autogen/Paths_kmonad.hs, dist/build/Paths_kmonad.p_o )
ld: warning: /nix/store/v8zr5bxx9lay8wlchdispmmkzw7bavii-libiconv-50/lib/libiconv.dylib, ignoring unexpected dylib file
[28 of 31] Compiling KMonad.Args.Cmd  ( src/KMonad/Args/Cmd.hs, dist/build/KMonad/Args/Cmd.p_o )
ld: warning: /nix/store/v8zr5bxx9lay8wlchdispmmkzw7bavii-libiconv-50/lib/libiconv.dylib, ignoring unexpected dylib file
[29 of 31] Compiling KMonad.Args      ( src/KMonad/Args.hs, dist/build/KMonad/Args.p_o )
ld: warning: /nix/store/v8zr5bxx9lay8wlchdispmmkzw7bavii-libiconv-50/lib/libiconv.dylib, ignoring unexpected dylib file
[30 of 31] Compiling KMonad.App.Main  ( src/KMonad/App/Main.hs, dist/build/KMonad/App/Main.p_o )
ld: warning: /nix/store/v8zr5bxx9lay8wlchdispmmkzw7bavii-libiconv-50/lib/libiconv.dylib, ignoring unexpected dylib file
[31 of 31] Compiling KMonad.App       ( src/KMonad/App.hs, dist/build/KMonad/App.p_o )
ld: warning: /nix/store/v8zr5bxx9lay8wlchdispmmkzw7bavii-libiconv-50/lib/libiconv.dylib, ignoring unexpected dylib file
/nix/store/swi24jhphnkwbwnwlknb7m147s4ix99x-cctools-binutils-darwin-949.0.1/bin/ranlib: file: dist/build/libHSkmonad-0.4.1-4mtT0Ku6A0SEsXlhglzvvt-ghc8.10.7.a(Win32Utils.o) has no symbols
/nix/store/swi24jhphnkwbwnwlknb7m147s4ix99x-cctools-binutils-darwin-949.0.1/bin/ranlib: file: dist/build/libHSkmonad-0.4.1-4mtT0Ku6A0SEsXlhglzvvt-ghc8.10.7.a(consUtils.o) has no symbols
/nix/store/swi24jhphnkwbwnwlknb7m147s4ix99x-cctools-binutils-darwin-949.0.1/bin/ranlib: file: dist/build/libHSkmonad-0.4.1-4mtT0Ku6A0SEsXlhglzvvt-ghc8.10.7.a(longlong.o) has no symbols
/nix/store/swi24jhphnkwbwnwlknb7m147s4ix99x-cctools-binutils-darwin-949.0.1/bin/ranlib: file: dist/build/libHSkmonad-0.4.1-4mtT0Ku6A0SEsXlhglzvvt-ghc8.10.7.a(Disassembler.o) has no symbols
/nix/store/swi24jhphnkwbwnwlknb7m147s4ix99x-cctools-binutils-darwin-949.0.1/bin/ranlib: file: dist/build/libHSkmonad-0.4.1-4mtT0Ku6A0SEsXlhglzvvt-ghc8.10.7.a(LdvProfile.o) has no symbols
/nix/store/swi24jhphnkwbwnwlknb7m147s4ix99x-cctools-binutils-darwin-949.0.1/bin/ranlib: file: dist/build/libHSkmonad-0.4.1-4mtT0Ku6A0SEsXlhglzvvt-ghc8.10.7.a(OldARMAtomic.o) has no symbols
/nix/store/swi24jhphnkwbwnwlknb7m147s4ix99x-cctools-binutils-darwin-949.0.1/bin/ranlib: file: dist/build/libHSkmonad-0.4.1-4mtT0Ku6A0SEsXlhglzvvt-ghc8.10.7.a(ProfilerReport.o) has no symbols
/nix/store/swi24jhphnkwbwnwlknb7m147s4ix99x-cctools-binutils-darwin-949.0.1/bin/ranlib: file: dist/build/libHSkmonad-0.4.1-4mtT0Ku6A0SEsXlhglzvvt-ghc8.10.7.a(ProfilerReportJson.o) has no symbols
/nix/store/swi24jhphnkwbwnwlknb7m147s4ix99x-cctools-binutils-darwin-949.0.1/bin/ranlib: file: dist/build/libHSkmonad-0.4.1-4mtT0Ku6A0SEsXlhglzvvt-ghc8.10.7.a(Profiling.o) has no symbols
/nix/store/swi24jhphnkwbwnwlknb7m147s4ix99x-cctools-binutils-darwin-949.0.1/bin/ranlib: file: dist/build/libHSkmonad-0.4.1-4mtT0Ku6A0SEsXlhglzvvt-ghc8.10.7.a(RetainerProfile.o) has no symbols
/nix/store/swi24jhphnkwbwnwlknb7m147s4ix99x-cctools-binutils-darwin-949.0.1/bin/ranlib: file: dist/build/libHSkmonad-0.4.1-4mtT0Ku6A0SEsXlhglzvvt-ghc8.10.7.a(RetainerSet.o) has no symbols
/nix/store/swi24jhphnkwbwnwlknb7m147s4ix99x-cctools-binutils-darwin-949.0.1/bin/ranlib: file: dist/build/libHSkmonad-0.4.1-4mtT0Ku6A0SEsXlhglzvvt-ghc8.10.7.a(RtsDllMain.o) has no symbols
/nix/store/swi24jhphnkwbwnwlknb7m147s4ix99x-cctools-binutils-darwin-949.0.1/bin/ranlib: file: dist/build/libHSkmonad-0.4.1-4mtT0Ku6A0SEsXlhglzvvt-ghc8.10.7.a(SpinLock.o) has no symbols
/nix/store/swi24jhphnkwbwnwlknb7m147s4ix99x-cctools-binutils-darwin-949.0.1/bin/ranlib: file: dist/build/libHSkmonad-0.4.1-4mtT0Ku6A0SEsXlhglzvvt-ghc8.10.7.a(Trace.o) has no symbols
/nix/store/swi24jhphnkwbwnwlknb7m147s4ix99x-cctools-binutils-darwin-949.0.1/bin/ranlib: file: dist/build/libHSkmonad-0.4.1-4mtT0Ku6A0SEsXlhglzvvt-ghc8.10.7.a(TraverseHeap.o) has no symbols
/nix/store/swi24jhphnkwbwnwlknb7m147s4ix99x-cctools-binutils-darwin-949.0.1/bin/ranlib: file: dist/build/libHSkmonad-0.4.1-4mtT0Ku6A0SEsXlhglzvvt-ghc8.10.7.a(Evac_thr.o) has no symbols
/nix/store/swi24jhphnkwbwnwlknb7m147s4ix99x-cctools-binutils-darwin-949.0.1/bin/ranlib: file: dist/build/libHSkmonad-0.4.1-4mtT0Ku6A0SEsXlhglzvvt-ghc8.10.7.a(Sanity.o) has no symbols
/nix/store/swi24jhphnkwbwnwlknb7m147s4ix99x-cctools-binutils-darwin-949.0.1/bin/ranlib: file: dist/build/libHSkmonad-0.4.1-4mtT0Ku6A0SEsXlhglzvvt-ghc8.10.7.a(Scav_thr.o) has no symbols
/nix/store/swi24jhphnkwbwnwlknb7m147s4ix99x-cctools-binutils-darwin-949.0.1/bin/ranlib: file: dist/build/libHSkmonad-0.4.1-4mtT0Ku6A0SEsXlhglzvvt-ghc8.10.7.a(Elf.o) has no symbols
/nix/store/swi24jhphnkwbwnwlknb7m147s4ix99x-cctools-binutils-darwin-949.0.1/bin/ranlib: file: dist/build/libHSkmonad-0.4.1-4mtT0Ku6A0SEsXlhglzvvt-ghc8.10.7.a(PEi386.o) has no symbols
/nix/store/swi24jhphnkwbwnwlknb7m147s4ix99x-cctools-binutils-darwin-949.0.1/bin/ranlib: file: dist/build/libHSkmonad-0.4.1-4mtT0Ku6A0SEsXlhglzvvt-ghc8.10.7.a(elf_got.o) has no symbols
/nix/store/swi24jhphnkwbwnwlknb7m147s4ix99x-cctools-binutils-darwin-949.0.1/bin/ranlib: file: dist/build/libHSkmonad-0.4.1-4mtT0Ku6A0SEsXlhglzvvt-ghc8.10.7.a(elf_plt.o) has no symbols
/nix/store/swi24jhphnkwbwnwlknb7m147s4ix99x-cctools-binutils-darwin-949.0.1/bin/ranlib: file: dist/build/libHSkmonad-0.4.1-4mtT0Ku6A0SEsXlhglzvvt-ghc8.10.7.a(elf_plt_aarch64.o) has no symbols
/nix/store/swi24jhphnkwbwnwlknb7m147s4ix99x-cctools-binutils-darwin-949.0.1/bin/ranlib: file: dist/build/libHSkmonad-0.4.1-4mtT0Ku6A0SEsXlhglzvvt-ghc8.10.7.a(elf_plt_arm.o) has no symbols
/nix/store/swi24jhphnkwbwnwlknb7m147s4ix99x-cctools-binutils-darwin-949.0.1/bin/ranlib: file: dist/build/libHSkmonad-0.4.1-4mtT0Ku6A0SEsXlhglzvvt-ghc8.10.7.a(elf_reloc.o) has no symbols
/nix/store/swi24jhphnkwbwnwlknb7m147s4ix99x-cctools-binutils-darwin-949.0.1/bin/ranlib: file: dist/build/libHSkmonad-0.4.1-4mtT0Ku6A0SEsXlhglzvvt-ghc8.10.7.a(elf_reloc_aarch64.o) has no symbols
/nix/store/swi24jhphnkwbwnwlknb7m147s4ix99x-cctools-binutils-darwin-949.0.1/bin/ranlib: file: dist/build/libHSkmonad-0.4.1-4mtT0Ku6A0SEsXlhglzvvt-ghc8.10.7.a(elf_util.o) has no symbols
/nix/store/swi24jhphnkwbwnwlknb7m147s4ix99x-cctools-binutils-darwin-949.0.1/bin/ranlib: file: dist/build/libHSkmonad-0.4.1-4mtT0Ku6A0SEsXlhglzvvt-ghc8.10.7.a(plt.o) has no symbols
/nix/store/swi24jhphnkwbwnwlknb7m147s4ix99x-cctools-binutils-darwin-949.0.1/bin/ranlib: file: dist/build/libHSkmonad-0.4.1-4mtT0Ku6A0SEsXlhglzvvt-ghc8.10.7.a(plt_aarch64.o) has no symbols
Preprocessing executable 'kmonad' for kmonad-0.4.1..
Building executable 'kmonad' for kmonad-0.4.1..
[1 of 1] Compiling Main             ( app/Main.hs, dist/build/kmonad/kmonad-tmp/Main.o )
Linking dist/build/kmonad/kmonad ...
running tests
Package has no test suites.
haddockPhase
installing
Installing library in /nix/store/2k616gx2mwfpblrc8q8fxqclra7fpdjb-kmonad-0.4.1/lib/ghc-8.10.7/x86_64-osx-ghc-8.10.7/kmonad-0.4.1-4mtT0Ku6A0SEsXlhglzvvt
Installing executable kmonad in /nix/store/2k616gx2mwfpblrc8q8fxqclra7fpdjb-kmonad-0.4.1/bin
Warning: The directory
/nix/store/2k616gx2mwfpblrc8q8fxqclra7fpdjb-kmonad-0.4.1/bin is not in the
system search path.
post-installation fixup
strip is /nix/store/swi24jhphnkwbwnwlknb7m147s4ix99x-cctools-binutils-darwin-949.0.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/2k616gx2mwfpblrc8q8fxqclra7fpdjb-kmonad-0.4.1/lib  /nix/store/2k616gx2mwfpblrc8q8fxqclra7fpdjb-kmonad-0.4.1/bin 
patching script interpreter paths in /nix/store/2k616gx2mwfpblrc8q8fxqclra7fpdjb-kmonad-0.4.1
/nix/store/2k616gx2mwfpblrc8q8fxqclra7fpdjb-kmonad-0.4.1

Attempting to run yields a segfault. Surely the warnings need addressing:

ld: warning: /nix/store/v8zr5bxx9lay8wlchdispmmkzw7bavii-libiconv-50/lib/libiconv.dylib, ignoring unexpected dylib file
/nix/store/swi24jhphnkwbwnwlknb7m147s4ix99x-cctools-binutils-darwin-949.0.1/bin/ranlib: file: dist/build/libHSkmonad-0.4.1-4mtT0Ku6A0SEsXlhglzvvt-ghc8.10.7.a(plt.o) has no symbols

kmonad does build and run properly when run directly with stack.

thoelze1 commented 2 years ago

I got the executable building and running with this default.nix. However, the same two above warnings persist. I am left with two last questions:

For future readers, the following resources helped me: