mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-15 17:31:56 +03:00
c3afa0fdd7
This installs the ODBC Driver 18 for SQL Server in all our shipped Docker images, and update our tests and documentation accordingly. This version supports arm64, and therefore can run natively (or via Docker) on macOS on aarch64. `msodbcsql17` is still installed in production-targeted Docker images so that users do not _have_ to migrate to the new driver. Nix expressions are packaged for the new driver, as it is not yet available in nixpkgs. In this version, [the default encryption setting was changed from "no" to "yes"](https://techcommunity.microsoft.com/t5/sql-server-blog/odbc-driver-18-0-for-sql-server-released/ba-p/3169228). In addition, "mandatory" and "optional" were added as synonyms for "yes" and "no" respectively. I have therefore modified all connection strings in tests to specify `Encrypt=optional` (and changed some from `Encrypt=no`). I chose "optional" rather than "no" because I feel it's more honest; these connection strings will work with or without an encrypted connection. PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6241 GitOrigin-RevId: 959f88dd1f271ef06a3616bc46b358f364f6cdfd
57 lines
1.5 KiB
Nix
57 lines
1.5 KiB
Nix
# This Nix flake defines the dependencies of the Hasura GraphQL Engine.
|
|
# Currently, we do not use it for building anything, just for providing a shell.
|
|
#
|
|
# The shell provides tooling for the Server, CLI, Console, and other components.
|
|
# You can start it with `nix develop`, or by using `direnv` (see .envrc).
|
|
#
|
|
# If you are using macOS, note that we apply a patch to GHC, and therefore all
|
|
# tooling needs to be built from scratch. If you're averse to waiting several
|
|
# hours for your environment to become usable, you can add @SamirTalwar's Cachix
|
|
# repository to save yourself the trouble:
|
|
#
|
|
# https://app.cachix.org/cache/hasura-samirtalwar#pull
|
|
{
|
|
description = "Hasura GraphQL Engine";
|
|
|
|
inputs = {
|
|
flake-utils = {
|
|
url = github:numtide/flake-utils;
|
|
};
|
|
|
|
nixpkgs = {
|
|
url = github:NixOS/nixpkgs;
|
|
};
|
|
};
|
|
|
|
outputs =
|
|
{ self
|
|
, flake-utils
|
|
, nixpkgs
|
|
}:
|
|
flake-utils.lib.eachDefaultSystem (system:
|
|
let
|
|
pkgs = import nixpkgs {
|
|
inherit system;
|
|
config = {
|
|
allowUnfree = true;
|
|
};
|
|
overlays = [
|
|
(import ./nix/overlays/ghc.nix)
|
|
(import ./nix/overlays/msodbcsql18.nix)
|
|
];
|
|
};
|
|
in
|
|
{
|
|
packages.graphql-parser = (pkgs.haskell.packages.${pkgs.ghcName}.callCabal2nix "graphql-parser" ./server/lib/graphql-parser-hs { }).overrideScope (
|
|
self: super: {
|
|
hedgehog = self.hedgehog_1_1_1;
|
|
}
|
|
);
|
|
|
|
formatter = pkgs.nixpkgs-fmt;
|
|
|
|
devShells.default = import ./nix/shell.nix { inherit pkgs; };
|
|
}
|
|
);
|
|
}
|