Repository navigation
Expand file tree
/
Copy pathflake.nix
More file actions
48 lines (43 loc) · 1.56 KB
/
Copy pathflake.nix
File metadata and controls
48 lines (43 loc) · 1.56 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
{
description = "Hex-encoded byte schemas for Effect Schema, and the schema extensions built on them.";
nixConfig = {
extra-substituters = "https://nix.systemfsoftware.com";
extra-trusted-public-keys = "nix-cache-1:wXA8I4DayNW9q6enUyQA/P/nT38pGSTLt374t3gsn7M=";
};
inputs = {
# Core at a full commit, for its dprint build and its nixpkgs.
core.url = "github:systemfsoftware/systemfsoftware/3ef6c21c36f19a539078b6817b495df3039cc163";
nixpkgs.follows = "core/nixpkgs";
pnpm-release-management.url = "github:systemfsoftware/pnpm-release-management";
};
outputs = { self, nixpkgs, core, pnpm-release-management }:
let
lib = nixpkgs.lib;
systems = [ "x86_64-linux" "aarch64-linux" ];
forEachSystem = fn: lib.genAttrs systems (system: fn nixpkgs.legacyPackages.${system});
# This repository's own public packages, as tarballs downstream flakes consume the same way.
workspaceOf = pkgs:
pnpm-release-management.lib.mkPnpmWorkspacePackages {
inherit pkgs;
src = self;
pname = "hex-schema";
pnpm = pkgs.pnpm_12;
};
in
{
packages = forEachSystem (pkgs:
let system = pkgs.stdenv.hostPlatform.system; in
workspaceOf pkgs // {
inherit (core.packages.${system}) dprint;
});
devShells = forEachSystem (pkgs: {
default = pkgs.mkShell {
packages = [
core.packages.${pkgs.stdenv.hostPlatform.system}.dprint
pkgs.nodejs_24
pkgs.pnpm_12
];
};
});
};
}