format flake.nix

This commit is contained in:
ihaveahax
2026-01-11 17:09:49 -06:00
parent 6c70ee5780
commit c81601fec0

View File

@@ -47,23 +47,34 @@
system: nixpkgs.lib.filterAttrs (_: v: nixpkgs.lib.isDerivation v) self.legacyPackages.${system} system: nixpkgs.lib.filterAttrs (_: v: nixpkgs.lib.isDerivation v) self.legacyPackages.${system}
); );
apps = { apps = forAllSystems (
# this only works on x86_64-linux due to devkitNix only working there system:
x86_64-linux = let
let pkgs = import nixpkgs { inherit system; };
system = "x86_64-linux"; in
pkgs = import nixpkgs { inherit system; }; {
in gui = {
{ type = "app";
update-finalize = { program = "${self.packages.${system}.custominstall}/bin/custominstall-gui";
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;
};
}; };
}; }
// (
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
{ }
)
);
}; };
} }