diff options
| author | seth <[email protected]> | 2024-01-07 23:35:05 -0500 |
|---|---|---|
| committer | seth <[email protected]> | 2024-01-07 23:35:11 -0500 |
| commit | 4ccfccb6a820c3b5de3e17c60ea3621125a8dcae (patch) | |
| tree | 7598ff527bdca305f3e10dbdcd4e2efa276e7811 /flake.nix | |
| parent | f7f562a9d23cfb7f4fceca69f708a1aace650340 (diff) | |
update to 1.20.4 and move to fabric
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 46 |
1 files changed, 6 insertions, 40 deletions
@@ -1,16 +1,9 @@ { description = "getchoo's modpack"; - inputs = { - nixpkgs.url = "nixpkgs/nixos-unstable"; - packwiz2nix.url = "github:getchoo/packwiz2nix"; - }; + inputs.nixpkgs.url = "nixpkgs/nixpkgs-unstable"; - outputs = { - nixpkgs, - packwiz2nix, - ... - }: let + outputs = {nixpkgs, ...}: let systems = [ "x86_64-linux" "aarch64-linux" @@ -18,38 +11,11 @@ "aarch64-darwin" ]; - forAllSystems = nixpkgs.lib.genAttrs systems; - nixpkgsFor = forAllSystems (system: import nixpkgs {inherit system;}); - inherit (packwiz2nix.lib) mkChecksumsApp mkMultiMCPack mkPackwizPackages; + forAllSystems = nixpkgs.lib.genAttrs systems (system: nixpkgs.legacyPackages.${system}); in { - apps = forAllSystems (s: let - pkgs = nixpkgsFor.${s}; - in { - generate-checksums = mkChecksumsApp pkgs ./mods; - }); - - packages = forAllSystems (s: let - pkgs = nixpkgsFor.${s}; - mods = mkPackwizPackages pkgs ./checksums.json; - in rec { - getchoo-modpack = mkMultiMCPack { - inherit pkgs mods; - filesDir = ./files; - name = "getchoo-modpack"; - }; - - default = getchoo-modpack; - }); - - devShells = forAllSystems (s: let - pkgs = nixpkgsFor.${s}; - inherit (pkgs) mkShell; - in { - default = mkShell { - packages = with pkgs; [ - packwiz - p7zip - ]; + devShells = forAllSystems (pkgs: { + default = pkgs.mkShell { + packages = [pkgs.packwiz]; }; }); }; |
