diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 3ebaa08c7c656fb76743479b638a9f09361273d9..9c47f236d86c41b9f239a1d09c660974f6d6059d 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,6 +1,14 @@
 build:
-  image: nixos/nix:2.3.12
+  image: nixos/nix:2.11.0-amd64
   tags:
     - x86_64-linux
   script:
-    - nix build
+    - nix-shell ./. --argstr version "$VERSION" --run 'bash -c "\$GHC --version"'
+  parallel:
+    matrix:
+      - VERSION: "8.10"
+      - VERSION: "9.0"
+      - VERSION: "9.2"
+      - VERSION: "9.4"
+      - VERSION: "9.6"
+
diff --git a/nix/sources.json b/nix/sources.json
index a3574c5a3c44f58271ec06beab8ad9585cafcff4..0d87415bf8a7966cf1f54680d85255b99be16214 100644
--- a/nix/sources.json
+++ b/nix/sources.json
@@ -5,10 +5,10 @@
         "homepage": "https://github.com/commercialhaskell/all-cabal-hashes",
         "owner": "commercialhaskell",
         "repo": "all-cabal-hashes",
-        "rev": "cddde77bdf91eab03ec81f91e579c3669890d0fd",
-        "sha256": "0ylqb3lvn4djxnd7hwmfkkf2gl8w6x8nw9vajxgqh6shf19m2aq4",
+        "rev": "caa707e042633406b04c5ac2559b65146c0778ef",
+        "sha256": "0c1fscml77kpxvjqc0iv56f9alp872x6bhlxrpnp6432dj08yvbn",
         "type": "file",
-        "url": "https://github.com/commercialhaskell/all-cabal-hashes/archive/cddde77bdf91eab03ec81f91e579c3669890d0fd.tar.gz",
+        "url": "https://github.com/commercialhaskell/all-cabal-hashes/archive/caa707e042633406b04c5ac2559b65146c0778ef.tar.gz",
         "url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
     },
     "niv": {
@@ -17,22 +17,22 @@
         "homepage": "https://github.com/nmattia/niv",
         "owner": "nmattia",
         "repo": "niv",
-        "rev": "945aa20cd077a8eccb1c42e29f225370b9a8d78b",
-        "sha256": "0qx94wvmaplagiwmrh558iwwr7nhvini40qmlx21myc66z51if32",
+        "rev": "82e5cd1ad3c387863f0545d7591512e76ab0fc41",
+        "sha256": "090l219mzc0gi33i3psgph6s2pwsc8qy4lyrqjdj4qzkvmaj65a7",
         "type": "tarball",
-        "url": "https://github.com/nmattia/niv/archive/945aa20cd077a8eccb1c42e29f225370b9a8d78b.tar.gz",
+        "url": "https://github.com/nmattia/niv/archive/82e5cd1ad3c387863f0545d7591512e76ab0fc41.tar.gz",
         "url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
     },
     "nixpkgs": {
-        "branch": "nixos-unstable",
+        "branch": "nixos-22.05",
         "description": "Nix Packages collection",
         "homepage": "",
         "owner": "NixOS",
         "repo": "nixpkgs",
-        "rev": "e10da1c7f542515b609f8dfbcf788f3d85b14936",
-        "sha256": "1if304v4i4lm217kp9f11f241kl3drbix3d0f08vgd6g43pv5mhq",
+        "rev": "a634c8f6c1fbf9b9730e01764999666f3436f10a",
+        "sha256": "1d40v43x972li5fg7jadxkj341li41mf2cl6vv7xi6j80rkq45q4",
         "type": "tarball",
-        "url": "https://github.com/NixOS/nixpkgs/archive/e10da1c7f542515b609f8dfbcf788f3d85b14936.tar.gz",
+        "url": "https://github.com/NixOS/nixpkgs/archive/a634c8f6c1fbf9b9730e01764999666f3436f10a.tar.gz",
         "url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
     },
     "nixpkgs-unstable": {
@@ -41,10 +41,10 @@
         "homepage": "",
         "owner": "NixOS",
         "repo": "nixpkgs",
-        "rev": "51d859cdab1ef58755bd342d45352fc607f5e59b",
-        "sha256": "02wi4nll9ninm3szny31r5a40lpg8vgmqr2n87gxyysb50c17w4i",
+        "rev": "a0a69be4b5ee63f1b5e75887a406e9194012b492",
+        "sha256": "16npglnyagxa9xrf80z4wy5lbff6xhcykzr96n90l6jdf0171a79",
         "type": "tarball",
-        "url": "https://github.com/NixOS/nixpkgs/archive/51d859cdab1ef58755bd342d45352fc607f5e59b.tar.gz",
+        "url": "https://github.com/NixOS/nixpkgs/archive/a0a69be4b5ee63f1b5e75887a406e9194012b492.tar.gz",
         "url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
     }
 }