This repository has no description
1{
2 description = "Packages for Linux on WebAssembly";
3
4 inputs = {
5 nixpkgs.url = "github:nixos/nixpkgs/nixos-24.11";
6 flake-parts.url = "github:hercules-ci/flake-parts";
7
8 # repo meta:
9 # keep-sorted start block=yes
10 git-hooks = {
11 url = "github:cachix/git-hooks.nix";
12 inputs.nixpkgs.follows = "nixpkgs";
13 };
14 make-shell = {
15 url = "github:nicknovitski/make-shell";
16 };
17 treefmt-nix = {
18 url = "github:numtide/treefmt-nix";
19 inputs.nixpkgs.follows = "nixpkgs";
20 };
21 # keep-sorted end
22
23 # package sources:
24 # keep-sorted start block=yes
25 busybox = {
26 url = "github:tombl/busybox";
27 flake = false;
28 };
29 linux = {
30 url = "github:tombl/linux/args";
31 flake = false;
32 };
33 llvm = {
34 url = "github:llvm/llvm-project/release/19.x";
35 flake = false;
36 };
37 musl = {
38 url = "github:tombl/musl/args";
39 flake = false;
40 };
41 # keep-sorted end
42 };
43 outputs =
44 inputs:
45 inputs.flake-parts.lib.mkFlake { inherit inputs; } {
46 imports = [
47 # keep-sorted start
48 ./flake/format.nix
49 ./flake/git-hooks.nix
50 ./flake/shell.nix
51 # keep-sorted end
52 ];
53
54 systems = [
55 "x86_64-linux"
56 "aarch64-linux"
57 "x86_64-darwin"
58 "aarch64-darwin"
59 ];
60
61 perSystem =
62 { pkgs, system, ... }:
63 {
64 packages = import ./all-packages.nix {
65 inherit (inputs.nixpkgs) lib;
66 inherit inputs;
67 currentSystem = system;
68 hostpkgs = import ./host-packages.nix { inherit pkgs; };
69 };
70 };
71 };
72}