Skip to content

Commit

Permalink
vula: Also patch and copy DBus configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzleutgeb committed Jan 26, 2024
1 parent 1b19b94 commit ef79609
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions modules/vula.nix
Original file line number Diff line number Diff line change
Expand Up @@ -71,5 +71,7 @@ in {
environment.systemPackages = [cfg.package];

systemd.packages = [cfg.package];

services.dbus.packages = [cfg.package];
};
}
7 changes: 6 additions & 1 deletion pkgs/by-name/vula/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
fetchgit,
highctidh,
nixosTests,
coreutils,
}:
with builtins; let
python = python3;
Expand All @@ -22,6 +23,9 @@ in
postPatch = ''
substituteInPlace configs/systemd/* \
--replace 'ExecStart=vula' "ExecStart=$out/bin/vula"
substituteInPlace configs/dbus/* \
--replace 'Exec=/bin/false' "Exec=${coreutils}/bin/false"
'';

propagatedBuildInputs = with python.pkgs;
Expand All @@ -46,8 +50,9 @@ in
++ [highctidh];

postInstall = ''
mkdir -p $out/lib/systemd/system
mkdir -p $out/{lib/systemd/system,/share/dbus-1/system-services}
cp configs/systemd/* $out/lib/systemd/system/
cp configs/dbus/* $out/share/dbus-1/system-services/
'';

doCheck = true;
Expand Down

0 comments on commit ef79609

Please sign in to comment.