tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
Fix some instances of #33166 correctly
Franz Pletz
8 years ago
1fb0d3d1
5997b4f3
+6
-8
3 changed files
expand all
collapse all
unified
split
pkgs
os-specific
linux
bbswitch
default.nix
nvidia-x11
generic.nix
wireguard
default.nix
+2
-2
pkgs/os-specific/linux/bbswitch/default.nix
···
1
-
{ stdenv, fetchurl, fetchpatch, kernel, libelf }:
2
3
let
4
baseName = "bbswitch";
···
20
sha256 = "1lbr6pyyby4k9rn2ry5qc38kc738d0442jhhq57vmdjb6hxjya7m";
21
}) ];
22
23
-
buildInputs = [ libelf ];
24
25
hardeningDisable = [ "pic" ];
26
···
1
+
{ stdenv, fetchurl, fetchpatch, kernel }:
2
3
let
4
baseName = "bbswitch";
···
20
sha256 = "1lbr6pyyby4k9rn2ry5qc38kc738d0442jhhq57vmdjb6hxjya7m";
21
}) ];
22
23
+
nativeBuildInputs = kernel.moduleBuildDependencies;
24
25
hardeningDisable = [ "pic" ];
26
+2
-4
pkgs/os-specific/linux/nvidia-x11/generic.nix
···
12
}:
13
14
{ stdenv, callPackage, callPackage_i686, fetchurl, fetchpatch
15
-
, kernel ? null, libelf, xorg, zlib, perl, nukeReferences
16
, # Whether to build the libraries only (i.e. not the kernel module or
17
# nvidia-settings). Used to support 32-bit binaries on 64-bit
18
# Linux.
···
62
63
libPath = makeLibraryPath [ xorg.libXext xorg.libX11 xorg.libXv xorg.libXrandr zlib stdenv.cc.cc ];
64
65
-
nativeBuildInputs = [ perl nukeReferences ];
66
-
67
-
buildInputs = [ libelf ];
68
69
disallowedReferences = optional (!libsOnly) [ kernel.dev ];
70
···
12
}:
13
14
{ stdenv, callPackage, callPackage_i686, fetchurl, fetchpatch
15
+
, kernel ? null, xorg, zlib, perl, nukeReferences
16
, # Whether to build the libraries only (i.e. not the kernel module or
17
# nvidia-settings). Used to support 32-bit binaries on 64-bit
18
# Linux.
···
62
63
libPath = makeLibraryPath [ xorg.libXext xorg.libX11 xorg.libXv xorg.libXrandr zlib stdenv.cc.cc ];
64
65
+
nativeBuildInputs = [ perl nukeReferences ] ++ kernel.moduleBuildDependencies;
0
0
66
67
disallowedReferences = optional (!libsOnly) [ kernel.dev ];
68
+2
-2
pkgs/os-specific/linux/wireguard/default.nix
···
1
-
{ stdenv, fetchurl, libmnl, libelf, kernel ? null }:
2
3
# module requires Linux >= 3.10 https://www.wireguard.io/install/#kernel-requirements
4
assert kernel != null -> stdenv.lib.versionAtLeast kernel.version "3.10";
···
37
38
NIX_CFLAGS = ["-Wno-error=cpp"];
39
40
-
buildInputs = [ libelf ];
41
42
buildPhase = "make module";
43
};
···
1
+
{ stdenv, fetchurl, libmnl, kernel ? null }:
2
3
# module requires Linux >= 3.10 https://www.wireguard.io/install/#kernel-requirements
4
assert kernel != null -> stdenv.lib.versionAtLeast kernel.version "3.10";
···
37
38
NIX_CFLAGS = ["-Wno-error=cpp"];
39
40
+
nativeBuildInputs = kernel.moduleBuildDependencies;
41
42
buildPhase = "make module";
43
};