rosenpass systemd unit file: introduce and test

This commit is contained in:
Jacek Galowicz
2024-11-14 14:00:15 +00:00
committed by Paul Spooren
parent d9f3c8fb96
commit f9dce3fc9a
6 changed files with 243 additions and 1 deletions

View File

@@ -12,6 +12,8 @@ let
extensions = [
"lock"
"rs"
"service"
"target"
"toml"
];
# Files to explicitly include
@@ -69,6 +71,12 @@ rustPlatform.buildRustPackage {
hardeningDisable = lib.optional isStatic "fortify";
postInstall = ''
mkdir -p $out/lib/systemd/system
install systemd/rosenpass@.service $out/lib/systemd/system
install systemd/rosenpass.target $out/lib/systemd/system
'';
meta = {
inherit (cargoToml.package) description homepage;
license = with lib.licenses; [ mit asl20 ];