⛩️ Powerful yet Minimal Nix Dependency Manager
flake
flakes
home-manager
nixos
go
nix
dependency
dependencies
1{
2 outputs =
3 { self }:
4 let
5 nixpkgs = (builtins.fromJSON (builtins.readFile "${self}/yae.json")).nixpkgs;
6
7 systemsFlakeExposed = [
8 "x86_64-linux"
9 "aarch64-linux"
10 "x86_64-darwin"
11 "armv6l-linux"
12 "armv7l-linux"
13 "i686-linux"
14 "aarch64-darwin"
15 "powerpc64le-linux"
16 "riscv64-linux"
17 "x86_64-freebsd"
18 ];
19
20 forEachSystem =
21 systems: action:
22 builtins.listToAttrs (
23 map (system: {
24 name = system;
25 value = action system;
26 }) systems
27 );
28 in
29 {
30 packages = (forEachSystem systemsFlakeExposed) (
31 system:
32 let
33 pkgs =
34 import
35 (builtins.fetchTarball {
36 inherit (nixpkgs) url sha256;
37 })
38 {
39 inherit system;
40 };
41 in
42 {
43 hello = pkgs.hello;
44 }
45 );
46 };
47}