-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
34 lines (32 loc) · 1.17 KB
/
Copy pathflake.nix
File metadata and controls
34 lines (32 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# SPDX-License-Identifier: MPL-2.0
# SPDX-FileCopyrightText: 2026 Jonathan D.A. Jewell
#
# Development environment for affinescript.
#
# Estate policy is Guix primary / Nix fallback (hyperpolymath/standards).
# This is the Nix fallback tier. It is a dev shell, not a package build:
# it declares the toolchain needed to work on this repo, pinned to an
# exact nixpkgs revision per the estate SHA-pinning rule.
#
# Packages mirror the build tooling actually present in this repo
# (just ocaml) — not a generic estate default.
#
# nix develop # enter the shell
# nix flake check # verify this file evaluates (run before committing)
{
description = "affinescript development environment";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/b134951a4c9f3c995fd7be05f3243f8ecd65d798";
outputs = { self, nixpkgs }:
let
systems = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ];
forAllSystems = f:
nixpkgs.lib.genAttrs systems (system: f nixpkgs.legacyPackages.${system});
in
{
devShells = forAllSystems (pkgs: {
default = pkgs.mkShell {
packages = with pkgs; [ just ocaml dune_3 ];
};
});
};
}