mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 15:22:59 +01:00
Merge pull request #174135 from jrobsonchase/innernet-unit-files
innernet: package systemd units
This commit is contained in:
commit
b8c549e1c3
1 changed files with 4 additions and 1 deletions
|
@ -37,7 +37,10 @@ rustPlatform.buildRustPackage rec {
|
|||
installManPage doc/innernet.8.gz
|
||||
installShellCompletion doc/innernet.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 $out/lib/systemd/system -type f | xargs sed -i "s|/usr/bin/innernet|$out/bin/innernet|"
|
||||
'');
|
||||
|
||||
passthru.tests = {
|
||||
serverVersion = testers.testVersion { package = innernet; command = "innernet-server --version"; };
|
||||
|
|
Loading…
Reference in a new issue