Feature/nixified build - #132
Merged
Merged
Conversation
The base rationale is that I'm sick of dealing with breaking dependency upgrades, especially for a static site. This site will be frozen in time, and only change when GIT sources change: any dependencies will be rebuilt via Nix, if needed. Note that, to make this work: * the joind.in integration is gone (it performs build-time querying of the joind.in API) * a new `composer-env.nix` and `php-packages.nix` are introduced, generated by `composer2nix` ( https://github.com/svanderburg/composer2nix/blob/299caca4aac42d7639a42eb4dde951c010f6e91c/README.md ) * at each change of `composer.json`, `nix run .#update-php-packages` is needed The next step is slapping the result of this derivation into a hardened container.
… of other projects
This also removes `Makefile`, which clashes with the behavior of `pkgs.stdenv.mkDerivation`
…llisions
Fixes:
```
error: Cannot build '/nix/store/pks2xqryrsapdicg6rfffbk2q9svihia-embedded-server.drv'.
Reason: builder failed with exit code 1.
Output paths:
/nix/store/plsxwlxwggzy74fi164zyna809qk4cw1-embedded-server
Last 9 log lines:
> Running phase: unpackPhase
> unpacking source archive /nix/store/whja0bpps2x85f3wznxp6q0l0sskdzcm-caddy-module-with-assets
> source root is caddy-module-with-assets
> Running phase: patchPhase
> Running phase: updateAutotoolsGnuConfigScriptsPhase
> Running phase: configurePhase
> Running phase: buildPhase
> Building subPackage .
> package github.com/mholt/caddy-embed: case-insensitive file name collision: "files/blog/tags/Clean Code/index.html" and "files/blog/tags/clean code/index.html"
For full logs, run:
nix log /nix/store/pks2xqryrsapdicg6rfffbk2q9svihia-embedded-server.drv
```
…th Caddy, with no FS
Ocramius
commented
Feb 22, 2026
Comment on lines
+7
to
+9
| # log access_logs { | ||
| # level DEBUG | ||
| # } |
Owner
Author
There was a problem hiding this comment.
Unsure about the logging level I want
Owner
Author
There was a problem hiding this comment.
Will leave this as-is, for now: self-hosting is to be done sometime this year, but the container is ready 👍
Owner
Author
I think this will be fine living on my NUC: uses 41Mb of RAM to exist, and contains the entire blog. |
I have no idea why Caddy ships with this existing by default in first place: it is such a gigantic foot-gun.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.