Remove executable bit for redlib.service

`systemd` constantly throws the following warnings because the `redlib.service` file is copied into the Nix store with executable permissions: `Configuration file /nix/store/<redlib>/lib/systemd/system/redlib.service is marked executable. Please remove executable permission bits. Proceeding anyway.`
This commit is contained in:
Raj
2025-11-13 13:11:43 -05:00
committed by GitHub
parent 9da7f1cf7f
commit 292c96515e

View File

@@ -21,7 +21,7 @@ rustPlatform.buildRustPackage {
cargoHash = "sha256-L35VSQdIbKGGsBPU2Sj/MoYohy1ZibgZ+7NVa3yNjH8=";
postInstall = ''
install -D contrib/redlib.service $out/lib/systemd/system/redlib.service
install --mode=444 -D contrib/redlib.service $out/lib/systemd/system/redlib.service
substituteInPlace $out/lib/systemd/system/redlib.service \
--replace-fail "/usr/bin/redlib" "$out/bin/redlib"
'';