blob: bded6fd2189bb89d3642d5930209702a8b27a1b0 (
plain)
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
|
{
description = "a tool for generating packages from packwiz modpacks";
inputs.nixpkgs.url = "nixpkgs/nixos-unstable";
outputs = {
nixpkgs,
self,
...
}: let
inherit (nixpkgs) lib;
systems = [
"x86_64-linux"
"aarch64-linux"
"x86_64-darwin"
"aarch64-darwin"
];
forAllSystems = fn: lib.genAttrs systems (s: fn nixpkgs.legacyPackages.${s});
in {
formatter = forAllSystems (pkgs: pkgs.alejandra);
lib = forAllSystems (pkgs: let
lib' = lib.makeScope pkgs.newScope (final: self.overlays.default final pkgs);
in {
inherit
(lib')
fetchPackwizModpack
;
});
overlays.default = final: prev: (import ./lib final prev);
};
}
|