mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-16 17:14:00 +00:00
homepage-dashboard: patch to enable control of log targets
This piece of software is generally used (and documented upstream) in containers. It is common practice for such applications to log both to stdout, and to a file which can be volume-mounted in the container. Because the intention here is to start with systemd, it makes less sense to have both, so this added patch stops the application from trying to create a log directory alongside the config directory.
This commit is contained in:
parent
bb5c42f95f
commit
cba3d0d236
@ -39,6 +39,20 @@ buildNpmPackage rec {
|
||||
|
||||
npmDepsHash = "sha256-u15lDdXnV3xlXAC9WQQKLIeV/AgtRM1sFNsacw3j6kU=";
|
||||
|
||||
# This project is primarily designed to be consumed through Docker.
|
||||
# By default it logs to stdout, and also to a directory. This makes
|
||||
# little sense here where all the logs will be collated in the
|
||||
# systemd journal anyway, so the patch removes the file logging.
|
||||
# This patch has been suggested upstream, but the contribution won't
|
||||
# be accepted until it gets at least 10 upvotes, per their policy:
|
||||
# https://github.com/gethomepage/homepage/discussions/3067
|
||||
patches = [
|
||||
(fetchpatch {
|
||||
url = "https://github.com/gethomepage/homepage/commit/3be28a2c8b68f2404e4083e7f32eebbccdc4d293.patch";
|
||||
hash = "sha256-5fUOXiHBZ4gdPeOHe1NIaBLaHJTDImsRjSwtueQOEXY=";
|
||||
})
|
||||
];
|
||||
|
||||
preBuild = ''
|
||||
mkdir -p config
|
||||
'';
|
||||
|
Loading…
Reference in New Issue
Block a user