Build InfiniTime firmware images using nix
Find a file
2024-01-06 20:45:42 +01:00
.envrc initial packaging 2023-09-29 13:02:35 +02:00
.gitignore initial packaging 2023-09-29 13:02:35 +02:00
flake.lock initial packaging 2023-09-29 13:02:35 +02:00
flake.nix more restrictive unfree packages 2024-01-06 20:45:42 +01:00
package.nix 1.14 2024-01-06 20:45:42 +01:00
README.md add readme 2023-09-30 12:52:21 +02:00

infinitime-builder

Build InfiniTime firmware images using nix.

Building

nix --experimental-features 'nix-command flakes' build

The images to flash will be put into ./result

(If you already have flakes enabled you can skip the --experimental-features bit)

Customizing

You can customize the build image by editing package.nix and adding them to the patches array like:

patches = [
  # grap the patch directly from github
  (fetchpatch {
    name = "double-click-settings.patch";
    url = "https://github.com/InfiniTimeOrg/InfiniTime/commit/d395f6f0857f082ab3e7fc66cb591b12bbd9cd65.patch";
    sha256 = "sha256-2Jng8JDTU7Zd42qD25CQNeF9dQRSLNwWq9IL+ik0ok0=";
  })
  # or from a local file (don't forget to add the patch to git before building)
  ./local-patch.patch
]

Updating

To change the version being build you can edit the src directive with a different rev and hash.

You can determine the correct hash for a revision by running

nix --experimental-features 'nix-command flakes' run github:nix-community/nurl -- https://github.com/InfiniTimeOrg/InfiniTime <revision> --submodules