From 991b463c042020d11efef35ba5c0147fd11bc647 Mon Sep 17 00:00:00 2001 From: sternenseemann Date: Sat, 21 Mar 2026 11:45:16 +0100 Subject: [PATCH] cabal2nix: prepare 2.21.3 --- cabal2nix/CHANGELOG.md | 19 +++++++++++++++++++ cabal2nix/cabal2nix.cabal | 2 +- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/cabal2nix/CHANGELOG.md b/cabal2nix/CHANGELOG.md index b5550466..76d80120 100644 --- a/cabal2nix/CHANGELOG.md +++ b/cabal2nix/CHANGELOG.md @@ -1,5 +1,24 @@ # Revision History for cabal2nix +## 2.21.3 + +* Add `--src-expression` flag to `cabal2nix` which allows overriding + the Nix expression used for the `src` attribute of the generated + package expression. This can be useful when cabal2nix can't infer + the source expression correctly from the command line arguments, + the source is passed in via `--extra-arguments`, the source needs + to use `filterSource` etc. + + See [#694](https://github.com/NixOS/cabal2nix/pull/694) and + [#684](https://github.com/NixOS/cabal2nix/issues/684). +* Resolve expressions failing to evaluate if the package they're based + on uses an SPDX-identified license that isn't part of `lib.licenses`. + Note that missing licenses now generate an evaluation warning. + See [#707](https://github.com/NixOS/cabal2nix/issues/707) and + [#708](https://github.com/NixOS/cabal2nix/pull/708). +* Update attribute name for the `odbc` library. Assumes Nixpkgs + with [nixpkgs#489676](https://github.com/NixOS/nixpkgs/pull/489676). + ## 2.21.2 * Add support for Cabal `>= 3.16`, see diff --git a/cabal2nix/cabal2nix.cabal b/cabal2nix/cabal2nix.cabal index cc927baa..f6b03053 100644 --- a/cabal2nix/cabal2nix.cabal +++ b/cabal2nix/cabal2nix.cabal @@ -1,5 +1,5 @@ name: cabal2nix -version: 2.21.2 +version: 2.21.3 synopsis: Convert Cabal files into Nix build instructions. description: Convert Cabal files into Nix build instructions. Users of Nix can install the latest