2017-08-01 01:50:48 +02:00
|
|
|
{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, glib, ncurses, libcap_ng }:
|
2016-01-03 18:05:18 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2017-08-01 01:50:48 +02:00
|
|
|
name = "irqbalance-${version}";
|
2018-01-20 16:55:07 +01:00
|
|
|
version = "1.3.0";
|
2016-01-03 18:05:18 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "irqbalance";
|
|
|
|
repo = "irqbalance";
|
2017-08-01 01:50:48 +02:00
|
|
|
rev = "v${version}";
|
2018-01-20 16:55:07 +01:00
|
|
|
sha256 = "009777p5v72x4r58skqgaf03qv3app9b8lkxkpxq0226l0x3j4qh";
|
2016-01-03 18:05:18 +01:00
|
|
|
};
|
|
|
|
|
2017-08-01 01:50:48 +02:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkgconfig ];
|
|
|
|
buildInputs = [ glib ncurses libcap_ng ];
|
2016-01-03 18:05:18 +01:00
|
|
|
|
2017-08-01 01:50:48 +02:00
|
|
|
LDFLAGS = "-lncurses";
|
2016-01-03 18:05:18 +01:00
|
|
|
|
|
|
|
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";
|
|
|
|
license = stdenv.lib.licenses.gpl2;
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
};
|
|
|
|
}
|