From 4b3fd0c5d12a9aca56687bce4440c504a5a57b09 Mon Sep 17 00:00:00 2001 From: Ryan Trinkle Date: Tue, 22 Aug 2023 16:32:24 -0400 Subject: [PATCH] Bump nixpkgs and support newer GHCs --- .ci/default.nix | 5 ++++- .ci/nixpkgs/unstable/github.json | 4 ++-- .ci/nixpkgs/unstable/thunk.nix | 5 ++++- .../gargoyle-postgresql-connect.cabal | 2 +- gargoyle-postgresql-nix/gargoyle-postgresql-nix.cabal | 2 +- gargoyle-postgresql/gargoyle-postgresql.cabal | 2 +- gargoyle/gargoyle.cabal | 2 +- 7 files changed, 14 insertions(+), 8 deletions(-) diff --git a/.ci/default.nix b/.ci/default.nix index 811fed8..8f8caf1 100644 --- a/.ci/default.nix +++ b/.ci/default.nix @@ -9,8 +9,11 @@ let ghc884 = nixos2003; ghc8107 = unstable; ghc902 = unstable; + ghc928 = unstable; + ghc946 = unstable; + ghc962 = unstable; }; - build = + build = { nixpkgs ? import ./dep/nixpkgs {} , ghc ? null }: diff --git a/.ci/nixpkgs/unstable/github.json b/.ci/nixpkgs/unstable/github.json index 4533919..3cbcfaf 100644 --- a/.ci/nixpkgs/unstable/github.json +++ b/.ci/nixpkgs/unstable/github.json @@ -3,6 +3,6 @@ "repo": "nixpkgs", "branch": "nixpkgs-unstable", "private": false, - "rev": "e0a42267f73ea52adc061a64650fddc59906fc99", - "sha256": "0r1dsj51x2rm016xwvdnkm94v517jb1rpn4rk63k6krc4d0n3kh9" + "rev": "0b07d4957ee1bd7fd3bdfd12db5f361bd70175a6", + "sha256": "0v40jjffymg1z0cmvsqwjnmp0hw3yblnn7s89kizybd8m1jss8sc" } diff --git a/.ci/nixpkgs/unstable/thunk.nix b/.ci/nixpkgs/unstable/thunk.nix index bbf2dc1..20f2d28 100644 --- a/.ci/nixpkgs/unstable/thunk.nix +++ b/.ci/nixpkgs/unstable/thunk.nix @@ -2,7 +2,10 @@ let fetch = { private ? false, fetchSubmodules ? false, owner, repo, rev, sha256, ... }: if !fetchSubmodules && !private then builtins.fetchTarball { url = "https://github.com/${owner}/${repo}/archive/${rev}.tar.gz"; inherit sha256; - } else (import {}).fetchFromGitHub { + } else (import (builtins.fetchTarball { + url = "https://github.com/NixOS/nixpkgs/archive/3aad50c30c826430b0270fcf8264c8c41b005403.tar.gz"; + sha256 = "0xwqsf08sywd23x0xvw4c4ghq0l28w2ki22h0bdn766i16z9q2gr"; +}) {}).fetchFromGitHub { inherit owner repo rev sha256 fetchSubmodules private; }; json = builtins.fromJSON (builtins.readFile ./github.json); diff --git a/gargoyle-postgresql-connect/gargoyle-postgresql-connect.cabal b/gargoyle-postgresql-connect/gargoyle-postgresql-connect.cabal index ba74f2a..a810c9b 100644 --- a/gargoyle-postgresql-connect/gargoyle-postgresql-connect.cabal +++ b/gargoyle-postgresql-connect/gargoyle-postgresql-connect.cabal @@ -18,7 +18,7 @@ library ghc-options: -Wall ghc-prof-options: -fprof-auto-exported build-depends: - base >=4.12 && <4.17 + base >=4.12 && <4.18 , bytestring >=0.10 && <0.12 , directory >=1.3 && <1.4 , gargoyle >=0.1.1.0 && < 0.2 diff --git a/gargoyle-postgresql-nix/gargoyle-postgresql-nix.cabal b/gargoyle-postgresql-nix/gargoyle-postgresql-nix.cabal index 23e2de2..b5393f6 100644 --- a/gargoyle-postgresql-nix/gargoyle-postgresql-nix.cabal +++ b/gargoyle-postgresql-nix/gargoyle-postgresql-nix.cabal @@ -24,7 +24,7 @@ library ghc-options: -Wall ghc-prof-options: -fprof-auto-exported build-depends: - base >=4.12 && <4.17 + base >=4.12 && <4.18 , bytestring >=0.10 && <0.12 , gargoyle >=0.1 && <0.2 , gargoyle-postgresql >=0.2 && <0.3 diff --git a/gargoyle-postgresql/gargoyle-postgresql.cabal b/gargoyle-postgresql/gargoyle-postgresql.cabal index 243c835..6416d72 100644 --- a/gargoyle-postgresql/gargoyle-postgresql.cabal +++ b/gargoyle-postgresql/gargoyle-postgresql.cabal @@ -45,7 +45,7 @@ library ghc-options: -Wall ghc-prof-options: -fprof-auto-exported build-depends: - base >=4.12 && <4.17 + base >=4.12 && <4.18 , bytestring >=0.10 && <0.12 , directory >=1.3 && <1.4 , gargoyle >=0.1.1.0 && < 0.2 diff --git a/gargoyle/gargoyle.cabal b/gargoyle/gargoyle.cabal index 13a26f7..481da51 100644 --- a/gargoyle/gargoyle.cabal +++ b/gargoyle/gargoyle.cabal @@ -29,7 +29,7 @@ library ghc-options: -Wall ghc-prof-options: -fprof-auto-exported build-depends: - base >=4.12.0 && <4.17 + base >=4.12.0 && <4.18 , directory >=1.3.3 && <1.4 , filelock >=0.1.1 && <0.2 , filepath >=1.4.2 && <1.5