diff options
| author | seth <[email protected]> | 2023-09-19 00:28:30 -0400 |
|---|---|---|
| committer | seth <[email protected]> | 2023-09-19 01:09:34 -0400 |
| commit | f924887c4b646aa2ce762039070f8741ab933221 (patch) | |
| tree | db81ed2b866a6a00f7ddf13c8846c6a3b1f6018d /flake.nix | |
| parent | 1c9c0ef2e40fbd1a921b446d8fe5884e645e4308 (diff) | |
feat!: introduce fetchPackwizModpack
this is a major **breaking** change, replacing previous functions such
as `mkPackwizPackages` & `mkModLinks`
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 32 |
1 files changed, 31 insertions, 1 deletions
@@ -1,5 +1,35 @@ { description = "a tool for generating packages from packwiz modpacks"; - outputs = _: {lib = import ./lib;}; + 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); + }; } |
