mirror of
https://github.com/ihaveamac/custom-install.git
synced 2026-01-21 14:06:02 +00:00
format flake.nix
This commit is contained in:
25
flake.nix
25
flake.nix
@@ -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
|
||||||
|
{ }
|
||||||
|
)
|
||||||
|
);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user