2022-08-09 21:39:42 +00:00
|
|
|
{ lib, buildPackages, fetchFromGitHub, perl, buildLinux, nixosTests, modDirVersionArg ? null, ... } @ args:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
buildLinux (args // rec {
|
2022-09-26 08:27:09 +00:00
|
|
|
version = "6.0.0-rc4";
|
2022-08-09 21:39:42 +00:00
|
|
|
|
|
|
|
# modDirVersion needs to be x.y.z, will automatically add .0 if needed
|
2022-09-26 08:27:09 +00:00
|
|
|
modDirVersion = if (modDirVersionArg == null) then concatStringsSep "." (take 3 (splitVersion "${version}.0")) + "-rc4" else modDirVersionArg;
|
2022-08-09 21:39:42 +00:00
|
|
|
|
|
|
|
# branchVersion needs to be x.y
|
|
|
|
extraMeta.branch = versions.majorMinor version;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "megous";
|
|
|
|
repo = "linux";
|
2022-09-26 08:27:09 +00:00
|
|
|
# branch: orange-pi-6.0
|
|
|
|
rev = "6ada3caab0b37968f1257b3ea75e5b0466a77162";
|
|
|
|
sha256 = "sha256-jIhOE0ZMuoJm7NqAEJ4OTNLHN/h8i4cOphcw3le7RSw=";
|
2022-08-09 21:39:42 +00:00
|
|
|
};
|
|
|
|
} // (args.argsOverride or { }))
|