mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2025-11-28 05:01: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}";
|
||||
|
||||
# Fetch the latest linux-surface patches
|
||||
repos = pkgs.callPackage (
|
||||
{ fetchFromGitHub }:
|
||||
{
|
||||
linux-surface = fetchFromGitHub {
|
||||
owner = "linux-surface";
|
||||
repo = "linux-surface";
|
||||
rev = "50d0ed6be462a5fdb643cfe8469bf69158afae42";
|
||||
hash = "sha256-ozvYrZDiVtMkdCcVnNEdlF2Kdw4jivW0aMJrDynN3Hk=";
|
||||
};
|
||||
}
|
||||
) { };
|
||||
linux-surface = pkgs.fetchFromGitHub {
|
||||
owner = "linux-surface";
|
||||
repo = "linux-surface";
|
||||
rev = "50d0ed6be462a5fdb643cfe8469bf69158afae42";
|
||||
hash = "sha256-ozvYrZDiVtMkdCcVnNEdlF2Kdw4jivW0aMJrDynN3Hk=";
|
||||
};
|
||||
|
||||
# Fetch and build the kernel
|
||||
inherit (pkgs.callPackage ./kernel/linux-package.nix { inherit repos; })
|
||||
inherit (pkgs.callPackage ./kernel/linux-package.nix { })
|
||||
linuxPackage
|
||||
surfacePatches
|
||||
;
|
||||
kernelPatches = surfacePatches {
|
||||
version = srcVersion;
|
||||
patchFn = ./kernel/${versions.majorMinor srcVersion}/patches.nix;
|
||||
patchSrc = (repos.linux-surface + "/patches/${versions.majorMinor srcVersion}");
|
||||
patchSrc = (linux-surface + "/patches/${versions.majorMinor srcVersion}");
|
||||
};
|
||||
kernelPackages = linuxPackage {
|
||||
inherit kernelPatches;
|
||||
|
|
|
|||
|
|
@ -4,7 +4,6 @@
|
|||
fetchurl,
|
||||
buildLinux,
|
||||
linuxPackagesFor,
|
||||
repos,
|
||||
}:
|
||||
|
||||
let
|
||||
|
|
@ -74,7 +73,6 @@ in
|
|||
{
|
||||
inherit
|
||||
linuxPackage
|
||||
repos
|
||||
surfacePatches
|
||||
versionsOf
|
||||
isVersionOf
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue