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
system = "x86_64-linux";
pkgs = import nixpkgs { inherit system; }; pkgs = import nixpkgs { inherit system; };
in 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 = { update-finalize = {
type = "app"; type = "app";
program = (pkgs.writeShellScript "update-finalize" '' program =
(pkgs.writeShellScript "update-finalize" ''
set -x set -x
finalize=${inputs.finalize.packages.${system}.custom-install-finalize}/custom-install-finalize.3dsx finalize=${inputs.finalize.packages.${system}.custom-install-finalize}/custom-install-finalize.3dsx
cp --no-preserve=mode,ownership,timestamps $finalize custominstall/custom-install-finalize.3dsx cp --no-preserve=mode,ownership,timestamps $finalize custominstall/custom-install-finalize.3dsx
'').outPath; '').outPath;
}; };
}; }
}; else
{ }
)
);
}; };
} }