mirror of
https://github.com/NixOS/nixos-hardware
synced 2024-11-23 03:19:42 +01:00
Drop the deprecated "linuxPackage1" function, rename "linuxPackage2" to "linuxPackage"
This commit is contained in:
parent
f2fbed9ce6
commit
7def533968
2 changed files with 4 additions and 20 deletions
|
@ -3,7 +3,7 @@
|
||||||
let
|
let
|
||||||
inherit (lib) mkIf mkOption types;
|
inherit (lib) mkIf mkOption types;
|
||||||
|
|
||||||
inherit (pkgs.callPackage ../linux-package.nix { }) linuxPackage2 surfacePatches;
|
inherit (pkgs.callPackage ../linux-package.nix { }) linuxPackage surfacePatches;
|
||||||
|
|
||||||
cfg = config.microsoft-surface;
|
cfg = config.microsoft-surface;
|
||||||
|
|
||||||
|
@ -12,7 +12,7 @@ let
|
||||||
inherit version;
|
inherit version;
|
||||||
patchFn = ./patches.nix;
|
patchFn = ./patches.nix;
|
||||||
};
|
};
|
||||||
kernelPackages = linuxPackage2 {
|
kernelPackages = linuxPackage {
|
||||||
inherit version kernelPatches;
|
inherit version kernelPatches;
|
||||||
sha256 = "sha256-iLiefdQerU46seQRyLuNWSV1rPgVzx3zwNxX4uiCwLw=";
|
sha256 = "sha256-iLiefdQerU46seQRyLuNWSV1rPgVzx3zwNxX4uiCwLw=";
|
||||||
ignoreConfigErrors=true;
|
ignoreConfigErrors=true;
|
||||||
|
|
|
@ -9,20 +9,7 @@ let
|
||||||
inherit (lib) recurseIntoAttrs versions;
|
inherit (lib) recurseIntoAttrs versions;
|
||||||
repos = pkgs.callPackage ../repos.nix {};
|
repos = pkgs.callPackage ../repos.nix {};
|
||||||
|
|
||||||
# Version 1 of the linuxPackage function:
|
linuxPackage =
|
||||||
# (DEPRECATED)
|
|
||||||
linuxPackage1 =
|
|
||||||
{ version,
|
|
||||||
modDirVersion ? version,
|
|
||||||
...
|
|
||||||
} @ args:
|
|
||||||
let
|
|
||||||
buildLinux' = buildLinux (args // { inherit modDirVersion; });
|
|
||||||
linuxPackagesFor' = linuxPackagesFor buildLinux';
|
|
||||||
in recurseIntoAttrs linuxPackagesFor';
|
|
||||||
|
|
||||||
# Version 1 of the linuxPackage function, with hopefully simplified arguments:
|
|
||||||
linuxPackage2 =
|
|
||||||
{ url ? "mirror://kernel/linux/kernel/v${versions.major version}.x/linux-${version}.tar.xz",
|
{ url ? "mirror://kernel/linux/kernel/v${versions.major version}.x/linux-${version}.tar.xz",
|
||||||
sha256 ? null,
|
sha256 ? null,
|
||||||
src ? (fetchurl { inherit url sha256; }),
|
src ? (fetchurl { inherit url sha256; }),
|
||||||
|
@ -50,8 +37,5 @@ let
|
||||||
};
|
};
|
||||||
|
|
||||||
in {
|
in {
|
||||||
inherit linuxPackage1 linuxPackage2 repos surfacePatches;
|
inherit linuxPackage repos surfacePatches;
|
||||||
|
|
||||||
# Default version:
|
|
||||||
linuxPackage = linuxPackage2;
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue