haskellPackages.cabal2nix-unstable: 2023-11-02 -> 2024-01-02

See https://github.com/NixOS/cabal2nix/pull/611 for discussion.

While we're changing things, let's also use the tzdata setupHook for
haskellPackages.tz.
This commit is contained in:
sternenseemann
2024-01-04 12:13:13 +01:00
parent e343acbf2c
commit 0c2ff42913
3 changed files with 5 additions and 7 deletions
@@ -8,10 +8,10 @@
}:
mkDerivation {
pname = "cabal2nix";
version = "unstable-2023-11-02";
version = "unstable-2024-01-02";
src = fetchzip {
url = "https://github.com/NixOS/cabal2nix/archive/2099a1f4594f621bb1a2879b793b860aefe4c027.tar.gz";
sha256 = "11j1lzjanhmdkqwnb7hni3wxiixl7fzxk6d633cn7ybr7b8wra9s";
url = "https://github.com/NixOS/cabal2nix/archive/3f23ae1dda9a5bbe5f560e3cfe521efc9675f668.tar.gz";
sha256 = "12vlqiga5lmr38cf92khrk5f2r68swh5plxmbarqlc4bvw93prb3";
};
postUnpack = "sourceRoot+=/cabal2nix; echo source root reset to $sourceRoot";
isLibrary = true;
@@ -447,9 +447,8 @@ self: super: builtins.intersectAttrs super {
mime-mail = appendConfigureFlag "--ghc-option=-DMIME_MAIL_SENDMAIL_PATH=\"sendmail\"" super.mime-mail;
# Help the test suite find system timezone data.
tz = overrideCabal (drv: {
preConfigure = "export TZDIR=${pkgs.tzdata}/share/zoneinfo";
}) super.tz;
tz = addBuildDepends [ pkgs.tzdata ] super.tz;
tzdata = addBuildDepends [ pkgs.tzdata ] super.tzdata;
# https://hydra.nixos.org/build/128665302/nixlog/3
# Disable tests because they require a running dbus session
-1
View File
@@ -311214,7 +311214,6 @@ self: {
benchmarkHaskellDepends = [
base criterion lens thyme time timezone-olson timezone-series
];
preConfigure = "export TZDIR=${pkgs.tzdata}/share/zoneinfo";
description = "Efficient time zone handling";
license = lib.licenses.asl20;
maintainers = [ lib.maintainers.maralorn ];