!RbXGJhHMsnQcNIDFWN:nixos.org

Haskell in Nixpkgs/NixOS

723 Members
For discussions and questions about Haskell with Nix, cabal2nix and haskellPackages in nixpkgs | Current Docs: https://haskell4nix.readthedocs.io/145 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
9 Oct 2025
@m1-s:matrix.orgm1-s

After upgrading nix version from 2.28.4 -> 2.28.5 I am getting this error:

error:
       … while calling the 'derivationStrict' builtin
         at <nix/derivation-internal.nix>:37:12:
           36|
           37|   strict = derivationStrict drvAttrs;
             |            ^
           38|

       … while evaluating derivation 'ghc-shell-for-packages-0'
         whose name attribute is located at /nix/store/yhvvk386srxffsd7369j28lkfaav1bwp-source/pkgs/stdenv/generic/make-derivation.nix:480:13

       … while evaluating attribute 'NIX_GHC' of derivation 'ghc-shell-for-packages-0'
         at /nix/store/yhvvk386srxffsd7369j28lkfaav1bwp-source/pkgs/development/haskell-modules/generic-builder.nix:999:13:
          998|             ) "${buildPackages.glibcLocales}/lib/locale/locale-archive";
          999|             "NIX_${ghcCommandCaps}" = "${ghcEnv}/bin/${ghcCommand}";
             |             ^
         1000|             "NIX_${ghcCommandCaps}PKG" = "${ghcEnv}/bin/${ghcCommand}-pkg";

       (stack trace truncated; use '--show-trace' to show the full, detailed trace)

       error: builder for '/nix/store/7wdsyrqbm6dna640gz7sibp4i66cr9xz-cabal2nix-yesod-form.drv' failed with exit code 1;
       last 3 log lines:
       > *** parsing cabal file: /nix/store/kbv83vqvvc3gczpfz84jycrcp00yx81y-source/yesod-form/yesod-form: withBinaryFile: does not exist (No such file or directory)
       > $ nix-prefetch-url --unpack file:///nix/store/kbv83vqvvc3gczpfz84jycrcp00yx81y-source/yesod-form
       > cabal2nix: nix-prefetch-url: createProcess: posix_spawnp: does not exist (No such file or directory)
       For full logs, run:
         nix log /nix/store/7wdsyrqbm6dna640gz7sibp4i66cr9xz-cabal2nix-yesod-form.drv

Any known solution?

19:30:50
@maralorn:maralorn.demaralornAre you sure this is because of a nix update? Seems kinda unlikely.19:32:31
@maralorn:maralorn.demaralornCan you share the command you ran?19:32:49
@maralorn:maralorn.demaralornMaybe a tree listing of /nix/store/kbv83vqvvc3gczpfz84jycrcp00yx81y-source can be informative.19:34:26

Show newer messages


Back to Room ListRoom Version: 6