Skip to content

Commit 33ef650

Browse files
committed
chore(governance): add flake.nix for standards#505 gates
1 parent c07eff7 commit 33ef650

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

flake.nix

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# SPDX-License-Identifier: MPL-2.0
2+
# SPDX-FileCopyrightText: 2026 Jonathan D.A. Jewell
3+
#
4+
# Development environment for 0patch-lsa-sentinel.
5+
#
6+
# Estate policy is Guix primary / Nix fallback (hyperpolymath/standards).
7+
# This is the Nix fallback tier. It is a dev shell, not a package build:
8+
# it declares the toolchain needed to work on this repo, pinned to an
9+
# exact nixpkgs revision per the estate SHA-pinning rule.
10+
#
11+
# Packages mirror the build tooling actually present in this repo
12+
# (just) — not a generic estate default.
13+
#
14+
# nix develop # enter the shell
15+
# nix flake check # verify this file evaluates (run before committing)
16+
{
17+
description = "0patch-lsa-sentinel development environment";
18+
19+
inputs.nixpkgs.url = "github:NixOS/nixpkgs/b134951a4c9f3c995fd7be05f3243f8ecd65d798";
20+
21+
outputs = { self, nixpkgs }:
22+
let
23+
systems = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ];
24+
forAllSystems = f:
25+
nixpkgs.lib.genAttrs systems (system: f nixpkgs.legacyPackages.${system});
26+
in
27+
{
28+
devShells = forAllSystems (pkgs: {
29+
default = pkgs.mkShell {
30+
packages = with pkgs; [ just ];
31+
};
32+
});
33+
};
34+
}

0 commit comments

Comments
 (0)