irqbalance: using systemd service definition from the package itself
This commit is contained in:
@@ -16,6 +16,16 @@ stdenv.mkDerivation rec {
|
||||
|
||||
LDFLAGS = "-lncurses";
|
||||
|
||||
postInstall =
|
||||
''
|
||||
# Systemd service
|
||||
mkdir -p $out/lib/systemd/system
|
||||
grep -vi "EnvironmentFile" misc/irqbalance.service >$out/lib/systemd/system/irqbalance.service
|
||||
substituteInPlace $out/lib/systemd/system/irqbalance.service \
|
||||
--replace /usr/sbin/irqbalance $out/bin/irqbalance \
|
||||
--replace ' $IRQBALANCE_ARGS' ""
|
||||
'';
|
||||
|
||||
meta = {
|
||||
homepage = https://github.com/Irqbalance/irqbalance;
|
||||
description = "A daemon to help balance the cpu load generated by interrupts across all of a systems cpus";
|
||||
|
||||
Reference in New Issue
Block a user