Skip to content

error: attribute 'callCabal2Nix' missing #81

Answered by daanrs
billksun asked this question in Q&A
Discussion options

You must be logged in to vote

I am not the library author, so I might be wrong, but I will try my best to help!

This error is luckily just a typo (I've made the same mistake before), if you use

overrides = self: super: with pkgs.haskell.lib; {
    ihp-hsx = dontCheck (self.callCabal2nix "ihp-hsx"  inputs.ihp-hsx {});
};

it should work.

Note that in this case you are overriding the ihp-hsx package with a flake input. If you for instance want to override the pre-existing package in nixpkgs to just disable the tests, then you can use something like

overrides = self: super: with pkgs.haskell.lib; {
    ihp-hsx = dontCheck super.ihp-hsx;
};

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@daanrs
Comment options

@billksun
Comment options

@srid
Comment options

@daanrs
Comment options

@billksun
Comment options

Answer selected by srid
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #80 on January 14, 2023 15:56.