2022-10-11 18:31:17 +03:00
|
|
|
# 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 = {
|
2023-03-24 23:34:55 +03:00
|
|
|
url = github:NixOS/nixpkgs;
|
2022-10-11 18:31:17 +03:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
outputs =
|
|
|
|
{ self
|
|
|
|
, flake-utils
|
|
|
|
, nixpkgs
|
|
|
|
}:
|
|
|
|
flake-utils.lib.eachDefaultSystem (system:
|
|
|
|
let
|
2022-11-15 14:25:04 +03:00
|
|
|
pkgs = import ./nix/nixpkgs.nix { inherit nixpkgs system; };
|
2022-10-11 18:31:17 +03:00
|
|
|
in
|
|
|
|
{
|
2023-01-26 17:39:52 +03:00
|
|
|
packages = {
|
|
|
|
graphql-parser = pkgs.haskell.packages.${pkgs.ghcName}.graphql-parser;
|
|
|
|
};
|
2022-10-11 18:31:17 +03:00
|
|
|
|
|
|
|
formatter = pkgs.nixpkgs-fmt;
|
|
|
|
|
2023-05-22 17:14:25 +03:00
|
|
|
devShells.default = import ./nix/shell.nix { inherit pkgs system; };
|
2022-10-11 18:31:17 +03:00
|
|
|
}
|
|
|
|
);
|
|
|
|
}
|