summaryrefslogtreecommitdiffhomepage
path: root/gleam/flake.nix
diff options
context:
space:
mode:
authorRalph Amissah <ralph.amissah@gmail.com>2026-10-01 17:23:00 -0400
committerRalph Amissah <ralph.amissah@gmail.com>2026-10-01 17:26:10 -0400
commit987828d4fd07cb390d6c61e91cd29bec79d444eb (patch)
tree67b008c99d20a43e59798c4923f4659c8aa6d57c /gleam/flake.nix
parentREADME: the reader, in each language, and what writing it found (diff)
gleam sisudoc-ocda-libclaude-org
Diffstat (limited to 'gleam/flake.nix')
-rw-r--r--gleam/flake.nix11
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 ];
};