include custom-install-finalize.3dsx in package folder, add nix app to build and copy a new version

This commit is contained in:
ihaveahax
2026-01-11 16:44:43 -06:00
parent 69fc8bb39a
commit 4d8a6de163
5 changed files with 98 additions and 1 deletions

View File

@@ -1,3 +1,4 @@
recursive-include custominstall/bin/* recursive-include custominstall/bin/*
include custominstall/title.db.gz include custominstall/title.db.gz
include custominstall/TaskbarLib.tlb include custominstall/TaskbarLib.tlb
include custominstall/custom-install-finalize.3dsx

Binary file not shown.

74
flake.lock generated
View File

@@ -1,5 +1,63 @@
{ {
"nodes": { "nodes": {
"devkitNix": {
"inputs": {
"flake-utils": "flake-utils",
"nixpkgs": [
"finalize",
"nixpkgs"
]
},
"locked": {
"lastModified": 1766539742,
"narHash": "sha256-F6OeM2LrLo2n+Xg5XU4udQR/vuWWrDMKxXRzNXE2ClQ=",
"owner": "bandithedoge",
"repo": "devkitNix",
"rev": "c97f9880737716085e78009cba6bf85ad104628b",
"type": "github"
},
"original": {
"owner": "bandithedoge",
"repo": "devkitNix",
"type": "github"
}
},
"finalize": {
"inputs": {
"devkitNix": "devkitNix",
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1,
"narHash": "sha256-qQn272f8Z4QhQV2reyd9v0GtypYgnTrOqEiewWnSGJY=",
"path": "finalize",
"type": "path"
},
"original": {
"path": "finalize",
"type": "path"
}
},
"flake-utils": {
"inputs": {
"systems": "systems"
},
"locked": {
"lastModified": 1731533236,
"narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "11707dc2f618dd54ca8739b309ec4fc024de578b",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"hax-nur": { "hax-nur": {
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [
@@ -61,11 +119,27 @@
}, },
"root": { "root": {
"inputs": { "inputs": {
"finalize": "finalize",
"hax-nur": "hax-nur", "hax-nur": "hax-nur",
"nixpkgs": "nixpkgs", "nixpkgs": "nixpkgs",
"pyctr": "pyctr" "pyctr": "pyctr"
} }
}, },
"systems": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
},
"treefmt-nix": { "treefmt-nix": {
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [

View File

@@ -7,6 +7,8 @@
pyctr.inputs.nixpkgs.follows = "nixpkgs"; pyctr.inputs.nixpkgs.follows = "nixpkgs";
hax-nur.url = "github:ihaveamac/nur-packages/master"; hax-nur.url = "github:ihaveamac/nur-packages/master";
hax-nur.inputs.nixpkgs.follows = "nixpkgs"; hax-nur.inputs.nixpkgs.follows = "nixpkgs";
finalize.url = "path:finalize";
finalize.inputs.nixpkgs.follows = "nixpkgs";
}; };
outputs = outputs =
@@ -15,6 +17,7 @@
nixpkgs, nixpkgs,
pyctr, pyctr,
hax-nur, hax-nur,
finalize,
}: }:
let let
systems = [ systems = [
@@ -43,5 +46,24 @@
packages = forAllSystems ( packages = forAllSystems (
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 = {
# 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;
};
};
};
}; };
} }

View File

@@ -45,4 +45,4 @@ find = {namespaces = false}
# is it even possible to make these OS-specific with pyproject.toml? # is it even possible to make these OS-specific with pyproject.toml?
[tool.setuptools.package-data] [tool.setuptools.package-data]
custominstall = ["bin/darwin/save3ds_fuse", "bin/win32/save3ds_fuse.exe", "TaskbarLib.tlb", "title.db.gz"] custominstall = ["bin/darwin/save3ds_fuse", "bin/win32/save3ds_fuse.exe", "TaskbarLib.tlb", "title.db.gz", "custom-install-finalize.3dsx"]