-
I tried to follow the instructions for overriding library versions here: https://srid.ca/haskell-template/dependency However, I am getting the following error:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
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;
}; |
Beta Was this translation helpful? Give feedback.
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
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