Skip to content

Commit

Permalink
[feat] nixpkgs bump (#3781)
Browse files Browse the repository at this point in the history
* [feat] nixpkgs bump
* [fix] dontCheck markov-chain-usage-model because its doctests are broken
* [fix] change override of base-compat*
  • Loading branch information
MangoIV authored Dec 18, 2023
1 parent 6019eab commit e39b966
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 14 deletions.
1 change: 1 addition & 0 deletions changelog.d/5-internal/nixpkgs-bump-libcurl
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bump the nixpkgs version to allow updating curl
20 changes: 11 additions & 9 deletions integration/test/Testlib/Mock.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
module Testlib.Mock (startMockServer, MockServerConfig (..), codensityApp) where

import Control.Arrow ((>>>))
import Control.Concurrent.Async
import Control.Concurrent.MVar
import Control.Exception
Expand Down Expand Up @@ -29,15 +30,16 @@ spawnServer wsettings sock app = liftIO $ Warp.runSettingsSocket wsettings sock
spawnTLSServer :: Warp.Settings -> Socket.Socket -> Wai.Application -> App ()
spawnTLSServer wsettings sock app = do
(cert, key) <-
asks (.servicesCwdBase) <&> \case
Nothing ->
( "/etc/wire/federator/secrets/tls.crt",
"/etc/wire/federator/secrets/tls.key"
)
Just base ->
( base <> "/federator/test/resources/integration-leaf.pem",
base <> "/federator/test/resources/integration-leaf-key.pem"
)
asks do
servicesCwdBase >>> \case
Nothing ->
( "/etc/wire/federator/secrets/tls.crt",
"/etc/wire/federator/secrets/tls.key"
)
Just base ->
( base <> "/federator/test/resources/integration-leaf.pem",
base <> "/federator/test/resources/integration-leaf-key.pem"
)
liftIO $ Warp.runTLSSocket (Warp.tlsSettings cert key) wsettings sock app

startMockServer :: MockServerConfig -> Wai.Application -> Codensity App Warp.Port
Expand Down
3 changes: 3 additions & 0 deletions nix/manual-overrides.nix
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ hself: hsuper: {
# PR with fix: https://github.com/freckle/hspec-junit-formatter/pull/23
hspec-junit-formatter = hlib.markUnbroken (hlib.dontCheck hsuper.hspec-junit-formatter);

# fails doctest
markov-chain-usage-model = hlib.markUnbroken (hlib.dontCheck hsuper.markov-chain-usage-model);

# Some test seems to be broken
hsaml2 = hlib.dontCheck hsuper.hsaml2;
saml2-web-sso = hlib.dontCheck hsuper.saml2-web-sso;
Expand Down
6 changes: 3 additions & 3 deletions nix/sources.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@
"homepage": "https://github.com/NixOS/nixpkgs",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "01441e14af5e29c9d27ace398e6dd0b293e25a54",
"sha256": "0yvkamjbk3aj4lvhm6vdgdk4b2j0xdv3gx9n4p7wfky52j2529dy",
"rev": "e97b3e4186bcadf0ef1b6be22b8558eab1cdeb5d",
"sha256": "114ggf0xbwq16djg4qql3jljknk9xr8h7dw18ccalwqg9k1cgv0g",
"type": "tarball",
"url": "https://github.com/NixOS/nixpkgs/archive/01441e14af5e29c9d27ace398e6dd0b293e25a54.tar.gz",
"url": "https://github.com/NixOS/nixpkgs/archive/e97b3e4186bcadf0ef1b6be22b8558eab1cdeb5d.tar.gz",
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
},
"nixpkgs-cargo": {
Expand Down
4 changes: 2 additions & 2 deletions nix/wire-server.nix
Original file line number Diff line number Diff line change
Expand Up @@ -436,8 +436,8 @@ let

inherit (pkgs.haskellPackages.override {
overrides = _hfinal: hprev: {
base-compat = hprev.base-compat_0_13_0;
base-compat-batteries = hprev.base-compat-batteries_0_13_0;
base-compat = hprev.base-compat_0_13_1;
base-compat-batteries = hprev.base-compat-batteries_0_13_1;
cabal-plan = hlib.markUnbroken (hlib.doJailbreak hprev.cabal-plan);
};
}) cabal-plan;
Expand Down

0 comments on commit e39b966

Please sign in to comment.