powertop: 2.13 -> 2.14
This commit is contained in:
parent
7db354e052
commit
8a91213fd6
|
@ -1,17 +1,20 @@
|
||||||
{ lib, stdenv, fetchurl, fetchpatch, gettext, libnl, ncurses, pciutils, pkg-config, zlib }:
|
{ lib, stdenv, fetchFromGitHub, fetchpatch, gettext, libnl, ncurses, pciutils
|
||||||
|
, pkg-config, zlib, autoreconfHook }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "powertop";
|
pname = "powertop";
|
||||||
version = "2.13";
|
version = "2.14";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchFromGitHub {
|
||||||
url = "https://01.org/sites/default/files/downloads/${pname}-${version}.tar.gz";
|
owner = "fenrus75";
|
||||||
sha256 = "0y1ixw8v17fdb1ima0zshrd0rh4zxdh10r93nrrvq6d4lhn9jpx6";
|
repo = pname;
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "1zkr2y5nb1nr22nq8a3zli87iyfasfq6489p7h1k428pv8k45w4f";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = [ "out" "man" ];
|
outputs = [ "out" "man" ];
|
||||||
|
|
||||||
nativeBuildInputs = [ pkg-config ];
|
nativeBuildInputs = [ pkg-config autoreconfHook ];
|
||||||
buildInputs = [ gettext libnl ncurses pciutils zlib ];
|
buildInputs = [ gettext libnl ncurses pciutils zlib ];
|
||||||
|
|
||||||
patches = lib.optional stdenv.hostPlatform.isMusl (
|
patches = lib.optional stdenv.hostPlatform.isMusl (
|
||||||
|
@ -22,6 +25,8 @@ stdenv.mkDerivation rec {
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
NIX_LDFLAGS = [ "-lpthread" ];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace src/main.cpp --replace "/sbin/modprobe" "modprobe"
|
substituteInPlace src/main.cpp --replace "/sbin/modprobe" "modprobe"
|
||||||
substituteInPlace src/calibrate/calibrate.cpp --replace "/usr/bin/xset" "xset"
|
substituteInPlace src/calibrate/calibrate.cpp --replace "/usr/bin/xset" "xset"
|
||||||
|
|
Loading…
Reference in a new issue