Merge pull request #12133 from dwe11er/new-package/irqbalance

irqbalance: init at 1.1.0

+58
+1
nixos/modules/module-list.nix
··· 162 162 ./services/hardware/bluetooth.nix 163 163 ./services/hardware/brltty.nix 164 164 ./services/hardware/freefall.nix 165 + ./services/hardware/irqbalance.nix 165 166 ./services/hardware/nvidia-optimus.nix 166 167 ./services/hardware/pcscd.nix 167 168 ./services/hardware/pommed.nix
+30
nixos/modules/services/hardware/irqbalance.nix
··· 1 + # 2 + { config, lib, pkgs, ... }: 3 + 4 + with lib; 5 + 6 + let 7 + 8 + cfg = config.services.irqbalance; 9 + 10 + in 11 + { 12 + options.services.irqbalance.enable = mkEnableOption "irqbalance daemon"; 13 + 14 + config = mkIf cfg.enable { 15 + 16 + systemd.services = { 17 + irqbalance = { 18 + description = "irqbalance daemon"; 19 + path = [ pkgs.irqbalance ]; 20 + serviceConfig = 21 + { ExecStart = "${pkgs.irqbalance}/bin/irqbalance --foreground"; }; 22 + wantedBy = [ "multi-user.target" ]; 23 + }; 24 + }; 25 + 26 + environment.systemPackages = [ pkgs.irqbalance ]; 27 + 28 + }; 29 + 30 + }
+25
pkgs/os-specific/linux/irqbalance/default.nix
··· 1 + { stdenv, fetchFromGitHub, autoconf, automake, libtool, pkgconfig}: 2 + 3 + stdenv.mkDerivation rec { 4 + name = "irqbalance-1.1.0"; 5 + 6 + src = fetchFromGitHub { 7 + owner = "irqbalance"; 8 + repo = "irqbalance"; 9 + rev = "a23de3c455b88060620d102f6946b1d8be9e2680"; 10 + sha256 = "06yq5k5v9wiwajqcjkbkk46g212qx78x323bygnyqshc5s25mp2x"; 11 + }; 12 + 13 + nativeBuildInputs = [ autoconf automake libtool pkgconfig ]; 14 + 15 + preConfigure = '' 16 + ./autogen.sh 17 + ''; 18 + 19 + meta = { 20 + homepage = https://github.com/Irqbalance/irqbalance; 21 + description = "A daemon to help balance the cpu load generated by interrupts across all of a systems cpus"; 22 + license = stdenv.lib.licenses.gpl2; 23 + platforms = stdenv.lib.platforms.linux; 24 + }; 25 + }
+2
pkgs/top-level/all-packages.nix
··· 9926 9926 9927 9927 ipset = callPackage ../os-specific/linux/ipset { }; 9928 9928 9929 + irqbalance = callPackage ../os-specific/linux/irqbalance { }; 9930 + 9929 9931 iw = callPackage ../os-specific/linux/iw { }; 9930 9932 9931 9933 jfbview = callPackage ../os-specific/linux/jfbview { };