From 6b222ae7be12bed8d7ba62c4ca43489996bd9f7d Mon Sep 17 00:00:00 2001 From: Tristan Cacqueray Date: Sun, 6 Aug 2023 19:43:00 +0000 Subject: [PATCH] Import proto3-suite proto3-wire override from hskgs --- nix/default.nix | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/nix/default.nix b/nix/default.nix index b1c39b474..2c0ed3d91 100644 --- a/nix/default.nix +++ b/nix/default.nix @@ -16,6 +16,25 @@ let version = "0.19.1.0"; sha256 = "sha256-QEN1wOLLUEsDKAbgz8ex0wfK/duNytvRYclwkBj/1G0="; }; + + # relax bound for doctest, ghc-prim, primitive, template-haskell, text and transformers + proto3-wire = pkgs.haskell.lib.doJailbreak hpPrev.proto3-wire; + # proto3-suite needs HEAD for swagger fix + proto3-suite = let + src = pkgs.fetchFromGitHub { + owner = "awakesecurity"; + repo = "proto3-suite"; + # https://github.com/awakesecurity/proto3-suite/pull/239 + rev = "6b6245fe8526a1f9fd64472bf1218bd7fdea9960"; + sha256 = "sha256-XYGeQJ2EXDnezI8NfhI+R3t1k31PKyfg9doOKp5FsCk="; + }; + pkg = hpPrev.callCabal2nix "proto3-suite" src { }; + in pkgs.lib.pipe pkg [ + pkgs.haskell.lib.compose.doJailbreak + pkgs.haskell.lib.compose.dontCheck + (pkgs.haskell.lib.compose.disableCabalFlag "swagger") + (pkgs.haskell.lib.compose.disableCabalFlag "large-records") + ]; }; # create the main package set without options