Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nix/haskell-packages: replace IFD with importing generated files #1220

Merged
merged 2 commits into from
Feb 19, 2020

Commits on Feb 19, 2020

  1. nix/haskell-packages: replace IFD with importing generated files

    Replace IFD calls to callCabal2nix with importing generated
    `default.nix` files.
    
    The generated `default.nix` files are stored in the repository and
    contain instructions on how to regenerate them.
    
    The generation of the `default.nix` files is done using the
    `haskellSrc2nixWithDoc` function which generates a directory
    containing a `default.nix` which is the result of running `cabal2nix`
    with the `extraCabal2nixOptions` on the provided `src`. A header is
    then added to the `default.nix` which contains instructions on how to
    regenerate that file.
    
    Finally the new jobs are added which check that the stored
    `default.nix` matches the expected `default.nix`. So whenever the
    `.cabal` files are updated and don't match the stored `default.nix`
    anymore CI will complain.
    basvandijk committed Feb 19, 2020
    Configuration menu
    Copy the full SHA
    e48c4ed View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ff94efb View commit details
    Browse the repository at this point in the history