Skip to content

Commit b80658b

Browse files
committed
Merge branch 'master' of github.com:input-output-hk/haskell.nix into circuithub
2 parents 542d4c9 + 6973a0e commit b80658b

File tree

7 files changed

+44
-12
lines changed

7 files changed

+44
-12
lines changed

.github/workflows/publish.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@ name: "Publish a flake to flakestry"
22
on:
33
push:
44
tags:
5-
- "v?[0-9]+.[0-9]+.[0-9]+"
6-
- "v?[0-9]+.[0-9]+"
5+
# This pattern matches tags in the format YYYY.MM.DD
6+
# It expects a four-digit year, followed by a two-digit month and day
7+
- "[0-9]{4}.[0-9]{2}.[0-9]{2}"
78
workflow_dispatch:
89
inputs:
910
tag:

.github/workflows/tag.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: "Weekly Date Tag"
2+
3+
on:
4+
schedule:
5+
- cron: '0 0 * * 0'
6+
7+
jobs:
8+
tag-repo:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Checkout repository
13+
uses: actions/checkout@v4
14+
15+
- name: Create and push tag using current date
16+
run: |
17+
TAG_DATE=$(date -u "+%Y.%m.%d")
18+
if git rev-parse "$TAG_DATE" >/dev/null 2>&1; then
19+
echo "Tag $TAG_DATE already exists. Skipping tag creation."
20+
else
21+
git config user.name "github-actions"
22+
git config user.email "[email protected]"
23+
git tag $TAG_DATE
24+
git push origin $TAG_DATE
25+
fi

flake.lock

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/pkgconf-nixpkgs-map.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@ pkgs:
571571
"alure" = [ "alure" ];
572572
"alure-static" = [ "alure" ];
573573
"aml" = [ "aml" ];
574-
"amtk-5" = [ "amtk" ];
574+
"amtk-5" = [ "libgedit-amtk" ];
575575
"anthy" = [ "anthy" ];
576576
"apk" = [ "apk-tools" ];
577577
"libapngasm" = [ "apngasm" ];

modules/component-driver.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ in
7777
++ lib.optionals (builtins.compareVersions config.compiler.version "8.11" >= 0) [
7878
# stm and exceptions are needed by the GHC package since 9.0.1
7979
"stm" "exceptions"]
80+
++ lib.optionals (builtins.compareVersions config.compiler.version "9.8.1" >= 0) [
81+
"semaphore-compat"]
8082
)
8183
++ lib.optionals (!config.reinstallableLibGhc || __elem config.compiler.nix-name ["ghc865"]) [
8284
"ghc-heap"

modules/configuration-nix.nix

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,9 @@ in {
183183
# https://gitlab.haskell.org/ghc/ghc/-/issues/23392
184184
# Using -j1 works around the issue.
185185
packages.gi-gtk.components.library.ghcOptions =
186-
pkgs.lib.optional (__elem config.compiler.nix-name ["ghc961" "ghc962" "ghc963" "ghc964"]) "-j1";
186+
pkgs.lib.optional (
187+
builtins.compareVersions config.compiler.version "9.6.1" >= 0
188+
&& builtins.compareVersions config.compiler.version "9.9" < 0) "-j1";
187189

188190
# With recent versions of nixpkgs fortify causes musl version of the
189191
# text package to fail with:

test/plugin/default.nix

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ let
66
project = project' {
77
inherit compiler-nix-name evalPackages;
88
src = testSrc "plugin";
9+
modules = [{
10+
reinstallableLibGhc = builtins.compareVersions buildPackages.haskell-nix.compiler.${compiler-nix-name}.version "9.8.1" < 0;
11+
}];
912
};
1013

1114
packages = project.hsPkgs;
@@ -17,8 +20,7 @@ in recurseIntoAttrs {
1720

1821
# Not sure why this breaks for ghc 8.10.7
1922
meta.disabled = compiler-nix-name == "ghc8107"
20-
# TODO remove once polysemy works with ghc 9.8.1
21-
|| __compareVersions buildPackages.haskell-nix.compiler.${compiler-nix-name}.version "9.8.1" >= 0
23+
|| compiler-nix-name == "ghc9920231203"
2224
|| stdenv.hostPlatform.isMusl
2325
|| stdenv.hostPlatform.isGhcjs
2426
|| stdenv.hostPlatform.isWindows

0 commit comments

Comments
 (0)