blob 4c942189c5e9f57e7301248a47d93a0a2ae932f0 672 bytes (raw)
name: pkgs/os-specific/linux/spectrum/rootfs/rc-services.nix # note: path name is non-authoritative(*)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
| | { runCommandNoCC, lib, s6-rc }:
{ services ? [] }:
let
inherit (lib) concatStrings escapeShellArg mapAttrsToList optionalString;
source = runCommandNoCC "s6-services-source" {} ''
mkdir $out
${concatStrings (mapAttrsToList (name: attrs: ''
mkdir $out/${name}
${concatStrings (mapAttrsToList (key: value: ''
cp ${value} $out/${name}/${key}
'') attrs)}
'') services)}
'';
s6RcCompile = { fdhuser ? null }: source:
runCommandNoCC "s6-rc-compile" {} ''
${s6-rc}/bin/s6-rc-compile \
${optionalString (fdhuser != null) "-h ${escapeShellArg fdhuser}"} \
$out ${source}
'';
in
s6RcCompile {} source
|
debug log:
solving 4c942189c5e ...
found 4c942189c5e in https://inbox.spectrum-os.org/spectrum-devel/20210411115740.29615-9-hi@alyssa.is/
applying [1/1] https://inbox.spectrum-os.org/spectrum-devel/20210411115740.29615-9-hi@alyssa.is/
diff --git a/pkgs/os-specific/linux/spectrum/rootfs/rc-services.nix b/pkgs/os-specific/linux/spectrum/rootfs/rc-services.nix
new file mode 100644
index 00000000000..4c942189c5e
Checking patch pkgs/os-specific/linux/spectrum/rootfs/rc-services.nix...
Applied patch pkgs/os-specific/linux/spectrum/rootfs/rc-services.nix cleanly.
index at:
100644 4c942189c5e9f57e7301248a47d93a0a2ae932f0 pkgs/os-specific/linux/spectrum/rootfs/rc-services.nix
(*) Git path names are given by the tree(s) the blob belongs to.
Blobs themselves have no identifier aside from the hash of its contents.^
Code repositories for project(s) associated with this public inbox
https://spectrum-os.org/git/crosvm
https://spectrum-os.org/git/doc
https://spectrum-os.org/git/mktuntap
https://spectrum-os.org/git/nixpkgs
https://spectrum-os.org/git/spectrum
https://spectrum-os.org/git/ucspi-vsock
https://spectrum-os.org/git/www
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).