From f28104504ad4aeb1b2456aca451789d6ad639d27 Mon Sep 17 00:00:00 2001 From: Shivaraj B H Date: Thu, 14 Dec 2023 00:13:03 +0530 Subject: [PATCH] [settings/all]: add `extraLibraries` option (#210) --- CHANGELOG.md | 4 ++++ nix/modules/project/settings/all.nix | 7 +++++++ 2 files changed, 11 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7f0d9af..5619993 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Revision history for haskell-flake +## Unreleased + +- #210: Add `extraLibraries` to `settings` module. + ## `0.4.0 (Aug 22, 2023` - #162: **Completely new way to override Haskell packages**: removed `overrides` and `source-overrides`. Use `packages` to specify your source overrides; use `settings` to override individual packages in modular fashion (like NixOS modules). Additional changes include: diff --git a/nix/modules/project/settings/all.nix b/nix/modules/project/settings/all.nix index 6ffb108..a1a9c66 100644 --- a/nix/modules/project/settings/all.nix +++ b/nix/modules/project/settings/all.nix @@ -145,6 +145,13 @@ in ''; impl = addBuildTools; }; + extraLibraries = { + type = types.listOf types.package; + description = '' + Extra library dependencies for the package. + ''; + impl = addExtraLibraries; + }; extraTestToolDepends = { type = types.listOf types.package; description = ''