innernet: only package systemd units for linux
This commit is contained in:
parent
31c82b62ff
commit
6b9080d336
1 changed files with 2 additions and 1 deletions
|
@ -37,9 +37,10 @@ rustPlatform.buildRustPackage rec {
|
||||||
installManPage doc/innernet.8.gz
|
installManPage doc/innernet.8.gz
|
||||||
installShellCompletion doc/innernet.completions.{bash,fish,zsh}
|
installShellCompletion doc/innernet.completions.{bash,fish,zsh}
|
||||||
installShellCompletion doc/innernet-server.completions.{bash,fish,zsh}
|
installShellCompletion doc/innernet-server.completions.{bash,fish,zsh}
|
||||||
|
'' + (lib.optionalString stdenv.isLinux ''
|
||||||
find . -regex '.*\.\(target\|service\)' | xargs install -Dt $out/lib/systemd/system
|
find . -regex '.*\.\(target\|service\)' | xargs install -Dt $out/lib/systemd/system
|
||||||
find $out/lib/systemd/system -type f | xargs sed -i "s|/usr/bin/innernet|$out/bin/innernet|"
|
find $out/lib/systemd/system -type f | xargs sed -i "s|/usr/bin/innernet|$out/bin/innernet|"
|
||||||
'';
|
'');
|
||||||
|
|
||||||
passthru.tests = {
|
passthru.tests = {
|
||||||
serverVersion = testers.testVersion { package = innernet; command = "innernet-server --version"; };
|
serverVersion = testers.testVersion { package = innernet; command = "innernet-server --version"; };
|
||||||
|
|
Loading…
Reference in a new issue