From c81601fec003c1a9d4776ffa23b376897dfef0d1 Mon Sep 17 00:00:00 2001 From: ihaveahax Date: Sun, 11 Jan 2026 17:09:49 -0600 Subject: [PATCH] format flake.nix --- flake.nix | 45 ++++++++++++++++++++++++++++----------------- 1 file changed, 28 insertions(+), 17 deletions(-) diff --git a/flake.nix b/flake.nix index b773d95..a2bcd3b 100644 --- a/flake.nix +++ b/flake.nix @@ -47,23 +47,34 @@ system: nixpkgs.lib.filterAttrs (_: v: nixpkgs.lib.isDerivation v) self.legacyPackages.${system} ); - apps = { - # this only works on x86_64-linux due to devkitNix only working there - x86_64-linux = - let - system = "x86_64-linux"; - pkgs = import nixpkgs { inherit system; }; - in - { - update-finalize = { - type = "app"; - program = (pkgs.writeShellScript "update-finalize" '' - set -x - finalize=${inputs.finalize.packages.${system}.custom-install-finalize}/custom-install-finalize.3dsx - cp --no-preserve=mode,ownership,timestamps $finalize custominstall/custom-install-finalize.3dsx - '').outPath; - }; + apps = forAllSystems ( + system: + let + pkgs = import nixpkgs { inherit system; }; + in + { + gui = { + type = "app"; + program = "${self.packages.${system}.custominstall}/bin/custominstall-gui"; }; - }; + } + // ( + if system == "x86_64-linux" then + # this only works on x86_64-linux due to devkitNix only working there + { + update-finalize = { + type = "app"; + program = + (pkgs.writeShellScript "update-finalize" '' + set -x + finalize=${inputs.finalize.packages.${system}.custom-install-finalize}/custom-install-finalize.3dsx + cp --no-preserve=mode,ownership,timestamps $finalize custominstall/custom-install-finalize.3dsx + '').outPath; + }; + } + else + { } + ) + ); }; }