Packaging for NixOS #34
Replies: 4 comments 6 replies
-
Sounds great! Please do submit the PR. The only one I'm not certain about is the |
Beta Was this translation helpful? Give feedback.
-
Opened #35, #36, and #37. When those are resolved and there's a new version, I'll update the Nix packaging. |
Beta Was this translation helpful? Give feedback.
-
NixOS packaging review is underway at NixOS/nixpkgs#362907. Opened #40 for one more patch. |
Beta Was this translation helpful? Give feedback.
-
The package and module are merged! It should be available in |
Beta Was this translation helpful? Give feedback.
-
Thanks for making this! I run NixOS on my media server, and the latest NixOS release includes an Immich module that I'm going to use. I saw IPP on /r/selfhosted and wanted to use it, so I figured out how to package it for NixOS. Before contributing it to nixpkgs, I thought it would be polite (1) to check in with you, the author, in case you'd prefer IPP not to be added to nixpkgs; and (2) to offer to upstream some of the patches I had to apply.
The nixpkgs branch that I would PR is here, if you're curious. It includes some patches that would be applied, which are derived from my forked IPP repo. In particular, the three changes are:
bin
property topackage.json
(npm docs). I know that in nixpkgs, this is needed to get abin/immich-public-proxy
executable; I'm not sure it it would do anything in the build workflow that you have.IPP_PORT
envvar instead of always 3000. In Docker this doesn't matter since you can remap the port, but the NixOS module runs it outside a container, so it needs a different way to change the port.app/package-lock.json
. Nix requires a lockfile to do a deterministic build. I noted that you addedpackage-lock.json
to the.gitignore
in 690bd3f, which I assume is because you are using Docker images to provide the same build on different machines. Personally, I would recommend having a lockfile even with Docker, but if your workflow requires it be absent, I can work around that.If you're open to it, I'll create PRs for these changes and adjust my Nix packaging for the updated upstream.
Beta Was this translation helpful? Give feedback.
All reactions