Closed talw closed 5 years ago
Problem was resolved when I defined my project inside survey with the other static Haskell packages.
i assume it's because callCabal2nix
was added to haskellPackages
in a
later version has nix packages send the pinned one.
maybe we need to add more attrs to some blacklist? like [ "callCabal2nix" "callPackage" "callHackage" ]
.
On Fri, Mar 1, 2019, 23:01 Tal Walter notifications@github.com wrote:
Closed #12 https://github.com/nh2/static-haskell-nix/issues/12.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/nh2/static-haskell-nix/issues/12#event-2175627889, or mute the thread https://github.com/notifications/unsubscribe-auth/ACNoMWxaYmPXdFoXAA35PD472HO51dYTks5vSiG9gaJpZM4baL9Z .
Can't build a simple project due to
callCabal2nix
being a function and not a derivation.I'm using commit:
9781df8a48eade302d159ce63a7ab0c30247788c
from 1st of March 2019Trying to build fails on this error:
Looking in
survey/default.nix
I found:The error was that
isExecutable
expects to get a set but got a function. So I traced to see on which name it happens:And found it to be:
trace: callCabal2nix
The following changed circumvented the error, but I'm not sure why this happens of what is the correct solution:
Note that I passed to survey the exact same nixpkgs as did the static_stack example so no surprises there.
I wonder if this problem is replicated for other people.