diff --git a/flake.nix b/flake.nix index 61dd80f63..b7de714e8 100644 --- a/flake.nix +++ b/flake.nix @@ -46,5 +46,9 @@ meta.description = "REST API for any Postgres database"; }; }); + + devShells = genSystems (postgrest: { + default = import ./shell.nix { inherit postgrest; }; + }); }; } diff --git a/shell.nix b/shell.nix index 2b9ae55ce..48406f283 100644 --- a/shell.nix +++ b/shell.nix @@ -7,11 +7,9 @@ # We highly recommend that use the PostgREST binary cache by installing cachix # (https://app.cachix.org/) and running `cachix use postgrest`. { docker ? false +, postgrest ? import ./default.nix { } }: let - postgrest = - import ./default.nix { }; - inherit (postgrest) pkgs; inherit (pkgs) lib;