-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: match with new supabase_potion release
- Loading branch information
Showing
15 changed files
with
377 additions
and
332 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
# Used by "mix format" | ||
[ | ||
inputs: ["mix.exs", "config/*.exs"], | ||
subdirectories: ["apps/*"] | ||
inputs: ["{mix,.formatter}.exs", "{config,lib,test}/**/*.{ex,exs}"] | ||
] |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,34 @@ | ||
{ | ||
description = "Supabase SDK for Elixir"; | ||
description = "Supabase Storage integration for Elixir"; | ||
|
||
inputs = { | ||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; | ||
flake-parts.url = "github:hercules-ci/flake-parts"; | ||
systems.url = "github:nix-systems/default"; | ||
}; | ||
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11-small"; | ||
|
||
outputs = {nixpkgs, ...}: let | ||
inherit (nixpkgs.lib) genAttrs; | ||
inherit (nixpkgs.lib.systems) flakeExposed; | ||
forAllSystems = f: | ||
genAttrs flakeExposed (system: f (import nixpkgs {inherit system;})); | ||
in { | ||
devShells = forAllSystems (pkgs: let | ||
inherit (pkgs) mkShell; | ||
inherit (pkgs.beam.interpreters) erlang_27; | ||
inherit (pkgs.beam) packagesWith; | ||
beam = packagesWith erlang_27; | ||
elixir_1_18 = beam.elixir.override { | ||
version = "1.18.1"; | ||
|
||
outputs = { | ||
flake-parts, | ||
systems, | ||
... | ||
} @ inputs: | ||
flake-parts.lib.mkFlake {inherit inputs;} { | ||
systems = import systems; | ||
perSystem = { | ||
pkgs, | ||
system, | ||
... | ||
}: let | ||
inherit (pkgs.beam.interpreters) erlang_27; | ||
inherit (pkgs.beam) packagesWith; | ||
beam = packagesWith erlang_27; | ||
in { | ||
_module.args.pkgs = import inputs.nixpkgs { | ||
inherit system; | ||
config.allowUnfree = true; | ||
src = pkgs.fetchFromGitHub { | ||
owner = "elixir-lang"; | ||
repo = "elixir"; | ||
rev = "v1.18.1"; | ||
sha256 = "sha256-zJNAoyqSj/KdJ1Cqau90QCJihjwHA+HO7nnD1Ugd768="; | ||
}; | ||
devShells.default = with pkgs; | ||
mkShell { | ||
name = "storage-ex"; | ||
packages = with pkgs; | ||
[beam.elixir_1_17] | ||
++ lib.optional stdenv.isLinux [inotify-tools] | ||
++ lib.optional stdenv.isDarwin [ | ||
darwin.apple_sdk.frameworks.CoreServices | ||
darwin.apple_sdk.frameworks.CoreFoundation | ||
]; | ||
}; | ||
}; | ||
}; | ||
in { | ||
default = mkShell { | ||
name = "storage-ex"; | ||
packages = with pkgs; [elixir_1_18 postgresql]; | ||
}; | ||
}); | ||
}; | ||
} |
Oops, something went wrong.