Skip to content

Commit ae4fcae

Browse files
committed
microsoft/surface: flatten 'repos' object
1 parent abb5f78 commit ae4fcae

File tree

2 files changed

+8
-15
lines changed

2 files changed

+8
-15
lines changed

microsoft/surface/common/default.nix

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -33,27 +33,22 @@ let
3333
abort "Invalid kernel version: ${kernelVersion}";
3434

3535
# Fetch the latest linux-surface patches
36-
repos = pkgs.callPackage (
37-
{ fetchFromGitHub }:
38-
{
39-
linux-surface = fetchFromGitHub {
40-
owner = "linux-surface";
41-
repo = "linux-surface";
42-
rev = "50d0ed6be462a5fdb643cfe8469bf69158afae42";
43-
hash = "sha256-ozvYrZDiVtMkdCcVnNEdlF2Kdw4jivW0aMJrDynN3Hk=";
44-
};
45-
}
46-
) { };
36+
linux-surface = pkgs.fetchFromGitHub {
37+
owner = "linux-surface";
38+
repo = "linux-surface";
39+
rev = "50d0ed6be462a5fdb643cfe8469bf69158afae42";
40+
hash = "sha256-ozvYrZDiVtMkdCcVnNEdlF2Kdw4jivW0aMJrDynN3Hk=";
41+
};
4742

4843
# Fetch and build the kernel
49-
inherit (pkgs.callPackage ./kernel/linux-package.nix { inherit repos; })
44+
inherit (pkgs.callPackage ./kernel/linux-package.nix { })
5045
linuxPackage
5146
surfacePatches
5247
;
5348
kernelPatches = surfacePatches {
5449
version = srcVersion;
5550
patchFn = ./kernel/${versions.majorMinor srcVersion}/patches.nix;
56-
patchSrc = (repos.linux-surface + "/patches/${versions.majorMinor srcVersion}");
51+
patchSrc = (linux-surface + "/patches/${versions.majorMinor srcVersion}");
5752
};
5853
kernelPackages = linuxPackage {
5954
inherit kernelPatches;

microsoft/surface/common/kernel/linux-package.nix

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
fetchurl,
55
buildLinux,
66
linuxPackagesFor,
7-
repos,
87
}:
98

109
let
@@ -74,7 +73,6 @@ in
7473
{
7574
inherit
7675
linuxPackage
77-
repos
7876
surfacePatches
7977
versionsOf
8078
isVersionOf

0 commit comments

Comments
 (0)