From d5694672a440116d0b88cb618917a5813f136e8f Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Wed, 11 Mar 2026 19:53:39 +0100 Subject: [PATCH] nix(flake): add devShell Adds a devShell to the flake for use with `nix develop`. Co-authored-by: Andrei Dziahel --- flake.nix | 4 ++++ shell.nix | 4 +--- 2 files changed, 5 insertions(+), 3 deletions(-) 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;