mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 03:23:29 +03:00
glibc: allow easier overriding of linux headers package
Before this change, one would have to `callPackage` `common.nix` manually, but now this can be done via `glibc.override`.
This commit is contained in:
parent
0f64ecd19d
commit
05482c6b79
2 changed files with 3 additions and 1 deletions
|
@ -260,6 +260,7 @@ stdenv.mkDerivation (
|
|||
|
||||
// (removeAttrs args [
|
||||
"withLinuxHeaders"
|
||||
"linuxHeaders"
|
||||
"withGd"
|
||||
"enableCET"
|
||||
"postInstall"
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
stdenv,
|
||||
callPackage,
|
||||
withLinuxHeaders ? true,
|
||||
linuxHeaders ? null,
|
||||
profilingLibraries ? false,
|
||||
withGd ? false,
|
||||
enableCET ? if stdenv.hostPlatform.isx86_64 then "permissive" else false,
|
||||
|
@ -19,7 +20,7 @@ let
|
|||
];
|
||||
in
|
||||
|
||||
(callPackage ./common.nix { inherit stdenv; } {
|
||||
(callPackage ./common.nix { inherit stdenv linuxHeaders; } {
|
||||
inherit
|
||||
withLinuxHeaders
|
||||
withGd
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue