-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
32 lines (30 loc) · 1.23 KB
/
flake.nix
File metadata and controls
32 lines (30 loc) · 1.23 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
# flake.nix — canonical Go LIBRARY (GSDS Biblioteca) consuming substrate's
# go-library-flake builder.
#
# The substrate Go builders are import-PATHS that return WHOLE-FLAKE outputs
# (packages / devShells / apps / overlays). They are called in two stages at
# the TOP LEVEL — first `import <path> { inherit nixpkgs; forge? }`, then the
# spec attrset `{ name; src; … }`. There is NO flake-parts `perSystem` wrapper:
# the builder already fans out across systems internally.
#
# packages.default = mkGoLibraryCheck → `go build ./...` in the Nix sandbox
# (build-verification, installs no binary). vendorHash = null because errors-go
# is pure-stdlib (zero external deps).
{
description = "errors-go — pleme-io's standard error model for Go (Biblioteca)";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
substrate = {
url = "github:pleme-io/substrate";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = inputs @ { self, nixpkgs, substrate, ... }:
(import substrate.goLibraryFlakeBuilder { inherit nixpkgs; }) {
name = "errors-go";
version = "0.1.0";
src = self;
vendorHash = null; # pure stdlib — no external dependencies
repo = "pleme-io/errors-go";
};
}