Skip to content

settings.<name>. cabalFlags does not work #177

@ozkutuk

Description

@ozkutuk

I am trying to disable a Cabal flag through settings, and looking at the source, I have come up with the following:

settings = {
  diagrams-builder = {
    cabalFlags = {
      ps = false;
    };
  };
};

However, this results in the following error:

error: A definition for option `impl.cabalFlags."[definition 1-entry 1]".<function body>' is not of type `package'. Definition values:
       - In `/nix/store/gw0j9icfkbqmyis1x3v16mpmp250wvn9-source/nix/modules/project/settings/all.nix': <function>
(use '--show-trace' to show detailed location information)

What I essentially want is to have a haskell-flake-equivalent of diagrams-builder = disableCabalFlag "ps" super.diagrams-builder. What is the proper way to use the cabalFlags option?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcase for testsThings we must automate testing of

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions