mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2025-11-28 21:21:06 +01:00
microsoft/surface: flatten 'repos' object
This commit is contained in:
parent
abb5f782d3
commit
ae4fcae923
2 changed files with 8 additions and 15 deletions
|
|
@ -33,27 +33,22 @@ let
|
||||||
abort "Invalid kernel version: ${kernelVersion}";
|
abort "Invalid kernel version: ${kernelVersion}";
|
||||||
|
|
||||||
# Fetch the latest linux-surface patches
|
# Fetch the latest linux-surface patches
|
||||||
repos = pkgs.callPackage (
|
linux-surface = pkgs.fetchFromGitHub {
|
||||||
{ fetchFromGitHub }:
|
|
||||||
{
|
|
||||||
linux-surface = fetchFromGitHub {
|
|
||||||
owner = "linux-surface";
|
owner = "linux-surface";
|
||||||
repo = "linux-surface";
|
repo = "linux-surface";
|
||||||
rev = "50d0ed6be462a5fdb643cfe8469bf69158afae42";
|
rev = "50d0ed6be462a5fdb643cfe8469bf69158afae42";
|
||||||
hash = "sha256-ozvYrZDiVtMkdCcVnNEdlF2Kdw4jivW0aMJrDynN3Hk=";
|
hash = "sha256-ozvYrZDiVtMkdCcVnNEdlF2Kdw4jivW0aMJrDynN3Hk=";
|
||||||
};
|
};
|
||||||
}
|
|
||||||
) { };
|
|
||||||
|
|
||||||
# Fetch and build the kernel
|
# Fetch and build the kernel
|
||||||
inherit (pkgs.callPackage ./kernel/linux-package.nix { inherit repos; })
|
inherit (pkgs.callPackage ./kernel/linux-package.nix { })
|
||||||
linuxPackage
|
linuxPackage
|
||||||
surfacePatches
|
surfacePatches
|
||||||
;
|
;
|
||||||
kernelPatches = surfacePatches {
|
kernelPatches = surfacePatches {
|
||||||
version = srcVersion;
|
version = srcVersion;
|
||||||
patchFn = ./kernel/${versions.majorMinor srcVersion}/patches.nix;
|
patchFn = ./kernel/${versions.majorMinor srcVersion}/patches.nix;
|
||||||
patchSrc = (repos.linux-surface + "/patches/${versions.majorMinor srcVersion}");
|
patchSrc = (linux-surface + "/patches/${versions.majorMinor srcVersion}");
|
||||||
};
|
};
|
||||||
kernelPackages = linuxPackage {
|
kernelPackages = linuxPackage {
|
||||||
inherit kernelPatches;
|
inherit kernelPatches;
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,6 @@
|
||||||
fetchurl,
|
fetchurl,
|
||||||
buildLinux,
|
buildLinux,
|
||||||
linuxPackagesFor,
|
linuxPackagesFor,
|
||||||
repos,
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
|
|
@ -74,7 +73,6 @@ in
|
||||||
{
|
{
|
||||||
inherit
|
inherit
|
||||||
linuxPackage
|
linuxPackage
|
||||||
repos
|
|
||||||
surfacePatches
|
surfacePatches
|
||||||
versionsOf
|
versionsOf
|
||||||
isVersionOf
|
isVersionOf
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue