summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorseth <[email protected]>2023-05-12 06:32:56 -0400
committerseth <[email protected]>2023-05-12 06:35:24 -0400
commit97df33980cf46d4695aa186dcb2391f374e3e8ce (patch)
treeec629cc98beff3e565b226c412ae69c191eda1d9 /flake.nix
parent068c56d8764a867cbca5060fd499edf37f4335dd (diff)
feat: start using mkMultiMCPack
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix13
1 files changed, 9 insertions, 4 deletions
diff --git a/flake.nix b/flake.nix
index c956f57..cb8cbb3 100644
--- a/flake.nix
+++ b/flake.nix
@@ -7,12 +7,10 @@
};
outputs = {
- self,
nixpkgs,
packwiz2nix,
...
}: let
- version = self.lastModifiedDate;
systems = [
"x86_64-linux"
"aarch64-linux"
@@ -22,17 +20,24 @@
forAllSystems = nixpkgs.lib.genAttrs systems;
nixpkgsFor = forAllSystems (system: import nixpkgs {inherit system;});
+ inherit (packwiz2nix.lib) mkChecksumsApp mkMultiMCPack mkPackwizPackages;
in {
apps = forAllSystems (s: let
pkgs = nixpkgsFor.${s};
in {
- generate-checksums = packwiz2nix.lib.mkChecksumsApp pkgs ./mods;
+ generate-checksums = mkChecksumsApp pkgs ./mods;
});
packages = forAllSystems (s: let
pkgs = nixpkgsFor.${s};
+ mods = mkPackwizPackages pkgs ./checksums.json;
in rec {
- getchoo-modpack = pkgs.callPackage ./nix {inherit version;};
+ getchoo-modpack = mkMultiMCPack {
+ inherit pkgs mods;
+ filesDir = ./files;
+ name = "getchoo-modpack";
+ };
+
default = getchoo-modpack;
});