synit-pid1: patch for NixOS
This commit is contained in:
parent
ef8519aa34
commit
81b52c46c7
|
@ -12,12 +12,25 @@ rustPlatform.buildRustPackage rec {
|
|||
rev = "f91214d1b0c5de0ba6ef3debf39e2632adae9ec5";
|
||||
hash = "sha256-T+GzvanVTuHvazMQIPVxq02ANtVPM0yma43G3+UoI5c=";
|
||||
};
|
||||
|
||||
patchPhase =
|
||||
# Patch to take children and configuration from /run/booted-system.
|
||||
''
|
||||
runHook prePatch
|
||||
substituteInPlace src/main.rs \
|
||||
--replace '"/usr/bin/syndicate-server"' '"/run/booted-system/sw/bin/syndicate-server"' \
|
||||
--replace '"/sbin/synit-log"' '"/run/booted-system/sw/bin/synit-log"' \
|
||||
--replace '"/etc/syndicate/boot"' '"/run/booted-system/etc/syndicate/boot"' \
|
||||
|
||||
runHook postPatch
|
||||
'';
|
||||
|
||||
sourceRoot = "source/${pname}";
|
||||
cargoHash = "sha256-0py5bOFwCvZL1SBVx4bo0/jFvt8S5ef8AGGRHZFWsgQ=";
|
||||
nativeBuildInputs = [ rust ];
|
||||
|
||||
meta = {
|
||||
description = "synit pid 1 program";
|
||||
description = "Synit pid 1 program (patched for NixOS)";
|
||||
homepage = "https://synit.org/";
|
||||
maintainers = with lib.maintainers; [ ehmry ];
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue