From bab66ce5a4144dedb22d0fadb30c68f896fd96f1 Mon Sep 17 00:00:00 2001 From: Alexander Esgen Date: Fri, 1 Sep 2023 19:59:00 +0200 Subject: [PATCH] Use WASM GHC 9.8 --- flake.lock | 23 +++++++++++------------ flake.nix | 2 +- ormolu-live/cabal.project | 13 +++---------- ormolu-live/default.nix | 2 +- 4 files changed, 16 insertions(+), 24 deletions(-) diff --git a/flake.lock b/flake.lock index bd507c7..ee1e103 100644 --- a/flake.lock +++ b/flake.lock @@ -177,11 +177,11 @@ "systems": "systems" }, "locked": { - "lastModified": 1687171271, - "narHash": "sha256-BJlq+ozK2B1sJDQXS3tzJM5a+oVZmi1q0FlBK/Xqv7M=", + "lastModified": 1689068808, + "narHash": "sha256-6ixXo3wt24N/melDWjq70UuHQLxGV8jZvooRanIHXw0=", "owner": "numtide", "repo": "flake-utils", - "rev": "abfb11bd1aec8ced1c9bb9adfe68018230f4fb3c", + "rev": "919d646de7be200f3bf08cb76ae1f09402b6f9b4", "type": "github" }, "original": { @@ -275,17 +275,16 @@ }, "locked": { "host": "gitlab.haskell.org", - "lastModified": 1690814459, - "narHash": "sha256-9jRCeXRDrAw0FmRmPuaQmQnhAjkqgX/0REFhVm3jQ2Q=", - "owner": "amesgen", + "lastModified": 1693212235, + "narHash": "sha256-N3zIrWxMV+eE/gCkUw/GzM3RyX8kkxLAwsWLHDip9hA=", + "owner": "ghc", "repo": "ghc-wasm-meta", - "rev": "77273aea0650413dd435ec7d0863ed8c875da068", + "rev": "28ee3192f8be23761cfa6f89b2656bfef763c028", "type": "gitlab" }, "original": { "host": "gitlab.haskell.org", - "owner": "amesgen", - "ref": "bump", + "owner": "ghc", "repo": "ghc-wasm-meta", "type": "gitlab" } @@ -550,11 +549,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1687518131, - "narHash": "sha256-KirltRIc4SFfk8bTNudIqgKAALH5oqpW3PefmkfWK5M=", + "lastModified": 1691371061, + "narHash": "sha256-BxPbPVlBIoneaXIBiHd0LVzA+L4nmvFCNBU6TmQAiMM=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "3d8a93602bc54ece7a4e689d9aea1a574e2bbc24", + "rev": "5068bc8fe943bde3c446326da8d0ca9c93d5a682", "type": "github" }, "original": { diff --git a/flake.nix b/flake.nix index 7d482ba..f899a06 100644 --- a/flake.nix +++ b/flake.nix @@ -10,7 +10,7 @@ }; # for Ormolu Live - ghc-wasm-meta.url = "gitlab:amesgen/ghc-wasm-meta/bump?host=gitlab.haskell.org"; + ghc-wasm-meta.url = "gitlab:ghc/ghc-wasm-meta?host=gitlab.haskell.org"; npmlock2nix = { url = "github:nix-community/npmlock2nix"; flake = false; }; ps-tools = { follows = "purs-nix/ps-tools"; diff --git a/ormolu-live/cabal.project b/ormolu-live/cabal.project index f7fe606..7b71525 100644 --- a/ormolu-live/cabal.project +++ b/ormolu-live/cabal.project @@ -1,8 +1,8 @@ packages: . .. -index-state: - , hackage.haskell.org 2023-07-31T13:43:03Z - , head.hackage 2023-07-21T04:26:25Z +index-state: 2023-09-01T14:51:04Z +allow-newer: all +constraints: text >=2.0 && <2.0.2 package ormolu -- The WASM backend does not support TH. @@ -11,10 +11,3 @@ package ormolu package ghc-lib-parser -- The WASM backend does not support the threaded RTS. flags: -threaded-rts - --- Some fixes to compile with GHC 9.9 (master) -source-repository-package - type: git - location: https://github.com/amesgen/stuff - tag: 0cbade491127ed2e5190629d906a982169d81824 - subdir: ghc-lib-parser-9.6.2.20230523-wasm diff --git a/ormolu-live/default.nix b/ormolu-live/default.nix index 1061ee7..b75a159 100644 --- a/ormolu-live/default.nix +++ b/ormolu-live/default.nix @@ -26,7 +26,7 @@ let ghcAPIVersion = defaultGHC.dev.hsPkgs.ghc-lib-parser.components.library.version; }; - ghcWasmDeps = [ inputs.ghc-wasm-meta.packages.${system}.default ]; + ghcWasmDeps = [ inputs.ghc-wasm-meta.packages.${system}.all_9_8 ]; in { package = npmlock2nix.build (common-npmlock2nix // {