graphql-engine/flake.nix
rikinsk 3ffc3c8166 Merge branch 'update-manifests' into stable
GitOrigin-RevId: 7bd0ef402a559b0bf8f34cb1f33b517da4eac227
2023-05-29 15:33:52 +00:00

46 lines
1.2 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 ./nix/nixpkgs.nix { inherit nixpkgs system; };
in
{
packages = {
graphql-parser = pkgs.haskell.packages.${pkgs.ghcName}.graphql-parser;
};
formatter = pkgs.nixpkgs-fmt;
devShells.default = import ./nix/shell.nix { inherit pkgs system; };
}
);
}