summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorseth <[email protected]>2023-05-11 02:07:22 -0400
committerseth <[email protected]>2023-05-11 02:13:25 -0400
commit921963cce4b5c0e6516a841f2be9680802201512 (patch)
tree3441dcea5097c6a42a569262505acdd9a756b3da /flake.nix
parentd9bf460ac787be758a61efaed178a78c3b915265 (diff)
feat: start using packwiz2nix
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix16
1 files changed, 14 insertions, 2 deletions
diff --git a/flake.nix b/flake.nix
index 74ffdfb..c956f57 100644
--- a/flake.nix
+++ b/flake.nix
@@ -1,11 +1,16 @@
{
description = "getchoo's modpack";
- inputs.nixpkgs.url = "nixpkgs/nixos-unstable";
+ inputs = {
+ nixpkgs.url = "nixpkgs/nixos-unstable";
+ packwiz2nix.url = "github:getchoo/packwiz2nix";
+ };
outputs = {
self,
nixpkgs,
+ packwiz2nix,
+ ...
}: let
version = self.lastModifiedDate;
systems = [
@@ -18,10 +23,17 @@
forAllSystems = nixpkgs.lib.genAttrs systems;
nixpkgsFor = forAllSystems (system: import nixpkgs {inherit system;});
in {
- packages = forAllSystems (s: let
+ apps = forAllSystems (s: let
pkgs = nixpkgsFor.${s};
in {
+ generate-checksums = packwiz2nix.lib.mkChecksumsApp pkgs ./mods;
+ });
+
+ packages = forAllSystems (s: let
+ pkgs = nixpkgsFor.${s};
+ in rec {
getchoo-modpack = pkgs.callPackage ./nix {inherit version;};
+ default = getchoo-modpack;
});
devShells = forAllSystems (s: let