irqbalance: 1.9.4 -> 1.9.4-unstable-2025-06-10 (#439411)
This commit is contained in:
@@ -11,15 +11,21 @@ let
|
||||
|
||||
in
|
||||
{
|
||||
options.services.irqbalance.enable = lib.mkEnableOption "irqbalance daemon";
|
||||
options.services.irqbalance = {
|
||||
|
||||
enable = lib.mkEnableOption "irqbalance daemon";
|
||||
|
||||
package = lib.mkPackageOption pkgs "irqbalance" { };
|
||||
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
|
||||
environment.systemPackages = [ pkgs.irqbalance ];
|
||||
environment.systemPackages = [ cfg.package ];
|
||||
|
||||
systemd.services.irqbalance.wantedBy = [ "multi-user.target" ];
|
||||
|
||||
systemd.packages = [ pkgs.irqbalance ];
|
||||
systemd.packages = [ cfg.package ];
|
||||
|
||||
};
|
||||
|
||||
|
||||
@@ -13,13 +13,13 @@
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "irqbalance";
|
||||
version = "1.9.4";
|
||||
version = "1.9.4-unstable-2025-06-10";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "irqbalance";
|
||||
owner = "Irqbalance";
|
||||
repo = "irqbalance";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-7es7wwsPnDSF37uL5SCgAQB+u+qGWmWDHOh3JkHuXMs=";
|
||||
rev = "8e8945e5092caf45605dfb1e66165e2eb9ec1f56";
|
||||
sha256 = "sha256-DSXFJZ0MyI10ZVFcGY0Sx1kye1ALMeG41nmyqbfO8vQ=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
@@ -37,12 +37,12 @@ stdenv.mkDerivation rec {
|
||||
|
||||
configureFlags = lib.optionals enableSystemd [
|
||||
"--with-systemd"
|
||||
"systemdsystemunitdir=$$out/lib/systemd/system"
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
# Systemd service
|
||||
mkdir -p "$out/lib/systemd/system"
|
||||
grep -vi "EnvironmentFile" misc/irqbalance.service >"$out/lib/systemd/system/irqbalance.service"
|
||||
sed -i "/^EnvironmentFile=/d" "$out/lib/systemd/system/irqbalance.service"
|
||||
substituteInPlace "$out/lib/systemd/system/irqbalance.service" \
|
||||
--replace-fail /usr/sbin/irqbalance "$out/bin/irqbalance --journal" \
|
||||
--replace-fail ' $IRQBALANCE_ARGS' ""
|
||||
@@ -50,7 +50,9 @@ stdenv.mkDerivation rec {
|
||||
|
||||
meta = {
|
||||
homepage = "https://github.com/Irqbalance/irqbalance";
|
||||
changelog = "https://github.com/Irqbalance/irqbalance/releases/tag/v${version}";
|
||||
changelog = lib.strings.optionalString (
|
||||
!lib.strings.hasInfix "-unstable-" version
|
||||
) "https://github.com/Irqbalance/irqbalance/releases/tag/v${version}";
|
||||
description = "Daemon to help balance the cpu load generated by interrupts across all of a systems cpus";
|
||||
license = lib.licenses.gpl2Only;
|
||||
platforms = lib.platforms.linux;
|
||||
|
||||
Reference in New Issue
Block a user