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