diff options
Diffstat (limited to 'gleam/flake.nix')
| -rw-r--r-- | gleam/flake.nix | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/gleam/flake.nix b/gleam/flake.nix index eb77f86..5ffb74c 100644 --- a/gleam/flake.nix +++ b/gleam/flake.nix @@ -1,8 +1,6 @@ { description = "ocda-lib: the object-centric document abstraction as a Gleam library"; - - inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; - + inputs.nixpkgs.url = "https://channels.nixos.org/nixpkgs-unstable/nixexprs.tar.zst"; outputs = { self, nixpkgs }: let system = "x86_64-linux"; # adjust for aarch64-linux / darwin @@ -11,7 +9,6 @@ name = "ocda_lib"; /* rebar3 with the port compiler already in it. - esqlite builds a NIF, and its rebar3 configuration asks for the `pc` plugin, which rebar3 would otherwise fetch from Hex at build time: impossible in a sandbox, and the build fails with @@ -23,11 +20,11 @@ }; /* The Hex dependencies, as manifest.toml pins them. - + . There is no Gleam builder in nixpkgs and `gleam build` fetches from Hex, so a sandboxed build cannot reach them. A fixed output derivation may, because its result is pinned by hash. - + . When a dependency changes, manifest.toml changes and this hash must change with it: build, take the hash nix reports, put it here. */ @@ -52,7 +49,6 @@ in { packages.${system} = { default = self.packages.${system}.${name}; - /* Shipped as an Erlang shipment rather than as an escript, because sqlite on the BEAM is a NIF: esqlite compiles its own sqlite into a shared object, and a NIF cannot be loaded from inside an @@ -98,7 +94,6 @@ }; }; }; - devShells.${system}.default = pkgs.mkShell { packages = [ pkgs.gleam pkgs.erlang pkgs.rebar3 pkgs.sqlite ]; }; |
