Skip to content

extra-libraries: m fails due to missing system dependency #1128

@ramirez7

Description

@ramirez7

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions