hgeometry-combinatorial has extra-libraries: m in its cabal file because it has a dependency on libm.
haskell.nix fails when trying to use hgeometry with:
error: The Nixpkgs package set does not contain the package: m (system dependency).
I believe libm is always implicitly present - it has no specific package in nixpkgs.
To work around this, I set m in my pkgs to be a no-op derivation with this overlay:
self: super:
{
m = self.stdenv.mkDerivation {
name = "m";
unpackPhase = "true";
installPhase = "mkdir -p $out";
};
}
and that got things working fine.
Is there a better way to handle this? Or should I send this no-op derivation upstream to haskell.nix?