tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
powertop: patch for musl
Will Dietz
7 years ago
a3df96b3
372b00df
+9
-1
1 changed file
expand all
collapse all
unified
split
pkgs
os-specific
linux
powertop
default.nix
+9
-1
pkgs/os-specific/linux/powertop/default.nix
···
1
-
{ stdenv, fetchurl, gettext, libnl, ncurses, pciutils, pkgconfig, zlib }:
2
3
stdenv.mkDerivation rec {
4
name = "powertop-${version}";
···
13
14
nativeBuildInputs = [ pkgconfig ];
15
buildInputs = [ gettext libnl ncurses pciutils zlib ];
0
0
0
0
0
0
0
0
16
17
postPatch = ''
18
substituteInPlace src/main.cpp --replace "/sbin/modprobe" "modprobe"
···
1
+
{ stdenv, fetchurl, fetchpatch, gettext, libnl, ncurses, pciutils, pkgconfig, zlib }:
2
3
stdenv.mkDerivation rec {
4
name = "powertop-${version}";
···
13
14
nativeBuildInputs = [ pkgconfig ];
15
buildInputs = [ gettext libnl ncurses pciutils zlib ];
16
+
17
+
patches = stdenv.lib.optional stdenv.hostPlatform.isMusl (
18
+
fetchpatch {
19
+
name = "strerror_r.patch";
20
+
url = "https://git.alpinelinux.org/cgit/aports/plain/main/powertop/strerror_r.patch?id=3b9214d436f1611f297b01f72469d66bfe729d6e";
21
+
sha256 = "1kzddhcrb0n2iah4lhgxwwy4mkhq09ch25jjngyq6pdj6pmfkpfw";
22
+
}
23
+
);
24
25
postPatch = ''
26
substituteInPlace src/main.cpp --replace "/sbin/modprobe" "modprobe"