Building project withnix build '.?submodules=1#daemonPull' -L output following log.
warning: Git tree '/Users/liuzichao/titanflow' is dirty warning: ignoring the client-specified setting 'build-users-group', because it is a restricted setting and you are not a trusted user warning: ignoring the client-specified setting 'http-connections', because it is a restricted setting and you are not a trusted user warning: ignoring the client-specified setting 'sandbox', because it is a restricted setting and you are not a trusted user warning: ignoring untrusted substituter 'https://nixcache.reflex-frp.org', you are not a trusted user. Run `man nix.conf` for more information on the `substituters` configuration option. warning: ignoring the client-specified setting 'trusted-public-keys', because it is a restricted setting and you are not a trusted user warning: ignoring the client-specified setting 'build-users-group', because it is a restricted setting and you are not a trusted user warning: ignoring the client-specified setting 'http-connections', because it is a restricted setting and you are not a trusted user warning: ignoring the client-specified setting 'sandbox', because it is a restricted setting and you are not a trusted user warning: ignoring untrusted substituter 'https://nixcache.reflex-frp.org', you are not a trusted user. Run `man nix.conf` for more information on the `substituters` configuration option. warning: ignoring the client-specified setting 'trusted-public-keys', because it is a restricted setting and you are not a trusted user error: Cannot build '/nix/store/ksc1ndmry76wb42rgmnc7pfwsllcvw11-google-oauth2-lib-google-oauth2-0.3.0.0.drv'. Reason: builder failed with exit code 1. Output paths: /nix/store/7bb3cxq2brl39hw3h5fbvpi428xg2dw2-google-oauth2-lib-google-oauth2-0.3.0.0 /nix/store/cvqlyv2hblzzga5386my4d5ig3vhakjg-google-oauth2-lib-google-oauth2-0.3.0.0-data Last 24 log lines: > Running phase: unpackPhase > unpacking source archive /nix/store/z67d11js5nkmn7h8n7xjkz4p4y0mnpzi-google-oauth2 > source root is google-oauth2 > Running phase: patchPhase > '/private/tmp/nix-build-google-oauth2-lib-google-oauth2-0.3.0.0.drv-0/.attr-0h9ydb7s8pfhl5kfs3rmmwnmpi49yyiw7jgr5dpw9rmvv8sy0f2b' -> 'google-oauth2.cabal' > Running phase: updateAutotoolsGnuConfigScriptsPhase > Running phase: configurePhase > Configure flags: > --prefix=/nix/store/7bb3cxq2brl39hw3h5fbvpi428xg2dw2-google-oauth2-lib-google-oauth2-0.3.0.0 lib:google-oauth2 --package-db=clear --package-db=/private/tmp/nix-build-google-oauth2-lib-google-oauth2-0.3.0.0.drv-0/tmp.fUtg238KoY/lib/ghc-9.6.4/lib/package.conf.d --exact-configuration --dependency=hoauth2=hoauth2-2.14.3-LoZ5vrzzftkDlhNNZEqu2z --dependency=aeson=aeson-2.2.3.0-EBZfYFg5bbKCswFTEAErfz --dependency=OneTuple=OneTuple-0.4.2-E4aOm6UVZIxG56nBapscpv --dependency=QuickCheck=QuickCheck-2.16.0.0-DjoSXTCpJgNHFNw2NbuW1k --dependency=random=random-1.3.1-7Lt1rAbc0jVH6lp88hr6VM --dependency=splitmix=splitmix-0.1.3.1-9GK8Q0CswltHoKcyyNHyPc --dependency=character-ps=character-ps-0.1-4YR8uXaL9h93ZSyxNjx3al --dependency=data-fix=data-fix-0.3.4-Ll3c9iN9WP55Th9QkixL8z --dependency=hashable=hashable-1.5.0.0-LjwsoNTAW8wCk86MDzFCuj --dependency=filepath=filepath-1.5.4.0-4HTPQtfPn9LCiAieoaUIaz --dependency=os-string=os-string-2.0.7-5I63Z0xvtynFKOhA2QVCgK --dependency=dlist=dlist-1.0-8ZSsfhwGOfJIXQNNI9Fv2 --dependency=generically=generically-0.1.1-FYC7OFpiEMrCzXM2eHlEir --dependency=indexed-traversable=indexed-traversable-0.1.4-7v6wrTQvaPlAf96LYtS0J1 --dependency=integer-conversion=integer-conversion-0.1.1-8MEdcRuWzC5Gi86VYkYSQp --dependency=primitive=primitive-0.9.1.0-20AEZozNI0d52W57s4LaqX --dependency=integer-logarithms=integer-logarithms-1.0.4-6BKYZKEgoSaAP8K7Ee7GTs --dependency=network-uri=network-uri-2.6.4.2-BVorNutTG8t5Q4hfexBtF9 --dependency=th-compat=th-compat-0.1.6-IhcYiBc3kj11xpip1hucge --dependency=scientific=scientific-0.3.8.0-FnJhBFnqdbL8Hd9nLkXY21 --dependency=semialign=semialign-1.3.1-BVF4POGZdxKKpTpqHEKq4u --dependency=indexed-traversable-instances=indexed-traversable-instances-0.1.2-Jl9pTmwWQjKK83NEE8lHMY --dependency=tagged=tagged-0.8.9-39kbHfsYcbrDJiMCK6IkXa --dependency=unordered-containers=unordered-containers-0.2.20-2YUG6YLySRUFFx4ijX3gk6 --dependency=vector=vector-0.13.2.0-67fKy3hq5mRGV5M9DsKKnZ --dependency=vector-stream=vector-stream-0.1.0.1-3kAAjYjKcymLd80Bqq9Xxz --dependency=semigroupoids=semigroupoids-6.0.1-6kQzonbeCKtBYnhF6KYApd --dependency=base-orphans=base-orphans-0.9.3-FBXVdugXFmRXqe72PMPuT --dependency=bifunctors=bifunctors-5.6.2-IJAmR6ub4iS7IbSHxAadSo --dependency=assoc=assoc-1.1.1-CTFlWEGbAN83IZ8EtsVk42 --dependency=comonad=comonad-5.0.9-13ThNA6zVta1WQDJiqgE8o --dependency=distributive=distributive-0.6.2.1-1udCTShtuuZA92Azcz1IGy --dependency=transformers-compat=transformers-compat-0.7.2-JMzFn4Sc9DJHnCfhJdxOPW --dependency=th-abstraction=th-abstraction-0.7.1.0-CSrKWqCHVgZ4b2NXdmTxps --dependency=contravariant=contravariant-1.5.5-KzhCBNYXMkYFS6JTj2kIRH --dependency=StateVar=StateVar-1.2.2-LMwI0SGrUtP1MlPXMPkYAS --dependency=these=these-1.2.1-LjjZfbxYTa8DIoGZda3xdy --dependency=strict=strict-0.5.1-HtpfT5mOimkKkXhNFcyyyH --dependency=text-iso8601=text-iso8601-0.1.1-AgQ6dbHOuVWINcXLZq0qn1 --dependency=time-compat=time-compat-1.9.8-IyoDlw462VWDAkxHzy84NV --dependency=text-short=text-short-0.1.6-1Ni34SdHO0zEN70YTOwZVe --dependency=uuid-types=uuid-types-1.0.6-92YJwkcrVLp1b8MlidWlTk --dependency=witherable=witherable-0.5-6stiTNip9bE9hvJJcSAgtm --dependency=base64=base64-1.0-37P918DMk9D1tfej8E7G62 --dependency=binary-instances=binary-instances-1.0.6-v27BLhbb061maGzIxszZQ --dependency=binary-orphans=binary-orphans-1.0.5-AMUU53hWZNbDtNCKczSNX4 --dependency=case-insensitive=case-insensitive-1.2.1.0-K7Pi6wFn3KyClDeW1Q3Ig2 --dependency=vector-binary-instances=vector-binary-instances-0.2.5.2-9rt9821q0LTL1gpxUy7RaI --dependency=crypton=crypton-1.0.4-1cYfObwJwWs33nx4gWIcS --dependency=basement=basement-0.0.16-DD6H8SGD4AW2EysJRRfDZR --dependency=memory=memory-0.18.0-ET4L6EgX0zZG34NxwerIi1 --dependency=data-default=data-default-0.8.0.1-3eXDTZnI5FqLEhOIew1Ooz --dependency=http-conduit=http-conduit-2.3.9.1-DM1xofyOJl01bNmPijKe1J --dependency=attoparsec-aeson=attoparsec-aeson-2.2.2.0-7ABg1EDXAKY9pLztTsiNwH --dependency=attoparsec=attoparsec-0.14.4-IqXtodK51Us6lJstNPLhvc --dependency=attoparsec:attoparsec-internal=attoparsec-0.14.4-4rLjFXXV6NYAXieIRlxfD3-attoparsec-internal --dependency=conduit-extra=conduit-extra-1.3.8-EnRmI3oDF514ckOzChYUS2 --dependency=async=async-2.2.5-3q1zVOYipp32m51CAE7mo2 --dependency=conduit=conduit-1.3.6.1-Aqo5f12hat7LyYALvW0WSv --dependency=directory=directory-1.3.9.0-H6hi31zRX0qBksffgLXVNi --dependency=file-io=file-io-0.1.5-2NuhmYTpVFeIch92jVp1Km --dependency=unix=unix-2.8.7.0-Cm1NAuIJjQkGHqN5K6EdaF --dependency=mono-traversable=mono-traversable-1.0.21.0-6cZQOCOdb3eAF2YqBUbpsF --dependency=split=split-0.2.5-1ZSy0xYACSg5uwyBvCYVUs --dependency=vector-algorithms=vector-algorithms-0.9.1.0-LgFJn1HrPRk72Lx0p5K8gD --dependency=bitvec=bitvec-1.1.5.0-9BXNMq7SL5O9j6PgptFL49 --dependency=resourcet=resourcet-1.3.0-7yKlZEOUdI73AWObfBpYn6 --dependency=unliftio-core=unliftio-core-0.2.1.0-jCMAjQfJQAFcRO0d4vNHT --dependency=network=network-3.2.7.0-HQoDWJXP9AW2xAj2FMBuf2 --dependency=process=process-1.6.26.1-FXaMvBGz9glFhnJ4jncaXH --dependency=streaming-commons=streaming-commons-0.2.3.0-CcRNkrNyJKOI24PpYYeAG3 --dependency=zlib=zlib-0.7.1.0-K27RXOWvrEPEihvFb4AAzw --dependency=typed-process=typed-process-0.2.13.0-6g6OAcUVmYE4WPeHkt0YMZ --dependency=http-client=http-client-0.7.19-7wgTihvUSuv4XPWo7hmRaX --dependency=base64-bytestring=base64-bytestring-1.2.1.0-K1erZvkjHObEU0kBt3tz3o --dependency=blaze-builder=blaze-builder-0.4.3-KX3GnmTvWL04XGKD1QhvTO --dependency=cookie=cookie-0.5.1-2RmVDVvmBHf9A2UtIapPBO --dependency=data-default-class=data-default-class-0.2.0.0-LpAAzaMRuHyIIObIgVsBFJ --dependency=http-types=http-types-0.12.4-4WVBTwpKeYP9DoYUbYUWho --dependency=iproute=iproute-1.7.15-8JHup90YKM75TyfxpEfdtj --dependency=appar=appar-0.1.8-2UYkbPOz3CVDU6UBsF1opz --dependency=byteorder=byteorder-1.0.4-KgHnyAnKoyVGvIK2rOLowO --dependency=mime-types=mime-types-0.1.2.0-7AIyzFVOyaLFRt5vBidQWK --dependency=http-client-tls=http-client-tls-0.3.6.4-GK047dnklU6IP38eyx7ON --dependency=crypton-connection=crypton-connection-0.4.4-8RnkimdTAvHGbxogyU7r2g --dependency=crypton-x509-store=crypton-x509-store-1.6.10-IVTPy4eTFYT9QfOc5HXfa5 --dependency=asn1-encoding=asn1-encoding-0.9.6-7wX2xdaugVNFx6k6sfuGbz --dependency=asn1-types=asn1-types-0.3.4-KhRWi895ZT9LqY7FxmVYIZ --dependency=hourglass=hourglass-0.2.12-J4zGVbaIRUFFodVsYab0JK --dependency=crypton-x509=crypton-x509-1.7.7-2SpUMgvHn4cAIcJ77NLNqY --dependency=asn1-parse=asn1-parse-0.9.5-C5Fv802Dg7uCJIA90I9RjQ --dependency=pem=pem-0.2.4-2QoBphl6FdqIJ9w09ufs0F --dependency=crypton-x509-system=crypton-x509-system-1.6.7-EbKCNGjZAbU3edVk3bpaBk --dependency=socks=socks-0.6.1-IhoBC2IVGL57MyS7l8BRta --dependency=cereal=cereal-0.5.8.3-9sqHuqlzPicJDqNz9TSzXN --dependency=tls=tls-2.1.10-3QrOjgfojo8cKsvCNN6XE --dependency=base16-bytestring=base16-bytestring-1.0.2.0-30XYP7z649IagQeQTppof --dependency=crypton-x509-validation=crypton-x509-validation-1.6.14-HK8IXqkPGZT2wb6QGKuCKn --dependency=ech-config=ech-config-0.0.1-9Uj9bcFi2kBGOYxc9N8fth --dependency=network-byte-order=network-byte-order-0.1.7-C8YIpF2qsXO91d4T9JkWGz --dependency=hpke=hpke-0.0.0-EehURSWxHY7FyjGwclkL3H --dependency=serialise=serialise-0.2.6.1-F4I92U8FX1c6loBouqY3gP --dependency=cborg=cborg-0.2.10.0-WAPLQMUQP12XOetkWo2HE --dependency=half=half-0.3.3-AtZqcUJ1bif8yvKSSicpde --dependency=unix-time=unix-time-0.4.17-1rr1YEEKuUILh0RonYbPhb --dependency=old-time=old-time-1.1.0.4-2NGSN81F5XGBsIJ7yHs5p3 --dependency=old-locale=old-locale-1.0.0.7-9ClBrOuOIT6EwyhqtYJ951 --dependency=microlens=microlens-0.4.14.0-G9gED3QRft9A7e49kgWkEo --dependency=uri-bytestring-aeson=uri-bytestring-aeson-0.1.0.9-FCRCkPhTQwV47c17JKGpJl --dependency=uri-bytestring=uri-bytestring-0.4.0.1-JKA0cDA6BFpBccMniLojB6 --dependency=th-lift-instances=th-lift-instances-0.1.20-E7Aj1YAujKv7s8XCeKnyLm --dependency=th-lift=th-lift-0.8.6-2vosYs7tbaFAE4U5pNr6VH --dependency=safe-exceptions=safe-exceptions-0.1.7.4-3nSgnRDkUlC4nQNQLXkPtQ --dependency=array=array-0.5.6.0 --dependency=base=base-4.18.2.0 --dependency=binary=binary-0.8.9.1 --dependency=bytestring=bytestring-0.11.5.3 --dependency=containers=containers-0.6.7 --dependency=deepseq=deepseq-1.4.8.1 --dependency=exceptions=exceptions-0.10.7 --dependency=ghc-bignum=ghc-bignum-1.3 --dependency=ghc-boot-th=ghc-boot-th-9.6.4 --dependency=ghc-prim=ghc-prim-0.10.0 --dependency=integer-gmp=integer-gmp-1.1 --dependency=mtl=mtl-2.3.1 --dependency=parsec=parsec-3.1.16.1 --dependency=pretty=pretty-1.1.3.6 --dependency=rts=rts-1.0.2 --dependency=stm=stm-2.5.1.0 --dependency=template-haskell=template-haskell-2.20.0.0 --dependency=text=text-2.0.2 --dependency=time=time-1.12.2 --dependency=transformers=transformers-0.6.1.0 --with-ghc=ghc --with-ghc-pkg=ghc-pkg --with-hsc2hs=hsc2hs --with-gcc=cc --with-ar=ar --with-strip=strip --disable-executable-stripping --disable-library-stripping --disable-library-profiling --disable-profiling --enable-static --enable-shared --disable-executable-dynamic --disable-coverage --enable-library-for-ghci --datadir=/nix/store/cvqlyv2hblzzga5386my4d5ig3vhakjg-google-oauth2-lib-google-oauth2-0.3.0.0-data/share/ghc-9.6.4 > Configuring library for google-oauth2-0.3.0.0... > Running phase: buildPhase > Preprocessing library for google-oauth2-0.3.0.0... > Building library for google-oauth2-0.3.0.0... > [1 of 2] Compiling Network.Google.OAuth2 ( src/Network/Google/OAuth2.hs, dist/build/Network/Google/OAuth2.o, dist/build/Network/Google/OAuth2.dyn_o ) > > src/Network/Google/OAuth2.hs:12:1: error: > Could not load module ‘Control.Monad.Except’ > It is a member of the hidden package ‘mtl-2.3.1’. > Perhaps you need to add ‘mtl’ to the build-depends in your .cabal file. > Use -v (or `:set -v` in ghci) to see a list of the files searched for. > | > 12 | import Control.Monad.Except > | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ > [2 of 2] Compiling Paths_google_oauth2 ( dist/build/autogen/Paths_google_oauth2.hs, dist/build/Paths_google_oauth2.o, dist/build/Paths_google_oauth2.dyn_o ) For full logs, run: nix-store -l /nix/store/ksc1ndmry76wb42rgmnc7pfwsllcvw11-google-oauth2-lib-google-oauth2-0.3.0.0.drv error: Cannot build '/nix/store/llmzai6d4i09c7jra0wbxpfs3y9nkh1w-daemon-exe-daemon-pull-0.1.0.0.drv'. Reason: 1 dependency failed. Output paths: /nix/store/gx4p1xrnvafyxyjch97dlp5gm1a7wxvz-daemon-exe-daemon-pull-0.1.0.0 /nix/store/myn3b67xy1nh2qkrs1kfg3q8xx1z4klf-daemon-exe-daemon-pull-0.1.0.0-data liuzichao@liuzichaos-MacBook-Pro titanflow % The error caused by Running phase: patchPhase override my local google-oauth2-lib by '/private/tmp/nix-build-google-oauth2-lib-google-oauth2-0.3.0.0.drv-0/.attr-0h9ydb7s8pfhl5kfs3rmmwnmpi49yyiw7jgr5dpw9rmvv8sy0f2b' -> 'google-oauth2.cabal'.
The unpacking source archive /nix/store/z67d11js5nkmn7h8n7xjkz4p4y0mnpzi-google-oauth2 in unpacking phase is the target local package. I upgraded it to 0.4.0.0 after changing some code.
The flake.nix is as follow.
{ inputs = rec { flake-parts.url = "github:hercules-ci/flake-parts"; haskell-nix.url = "github:input-output-hk/haskell.nix"; nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; }; outputs = inputs@{ self, nixpkgs, flake-parts, haskell-nix } : flake-parts.lib.mkFlake { inherit inputs; } { systems = [ "aarch64-darwin" ]; perSystem = { system, ... } : let pkgs = import nixpkgs { inherit system; overlays = [ haskell-nix.overlay ]; config.allowUnfree = true; }; project = pkgs.haskell-nix.cabalProject { src = ./.; compiler-nix-name = "ghc964"; modules = [{ packages.google-oauth2 = { src = ./Vendor/google-oauth2; }; }]; }; in { packages = { daemonPull = project.hsPkgs.daemon.components.exes."daemon-pull"; daemonHandle = project.hsPkgs.daemon.components.exes."daemon-handle"; }; }; }; } How to forbid patchPhase to make traget local google-oauth2 library be used?