Merge pull request #86208 from arianvp/fix-linux-systemd-dep
linux: do not depend on systemd indirectly
This commit is contained in:
commit
fbc63c4a7b
@ -1,6 +1,6 @@
|
|||||||
{ buildPackages, runCommand, nettools, bc, bison, flex, perl, rsync, gmp, libmpc, mpfr, openssl
|
{ buildPackages, runCommand, nettools, bc, bison, flex, perl, rsync, gmp, libmpc, mpfr, openssl
|
||||||
, libelf, cpio
|
, libelf, cpio
|
||||||
, utillinux
|
, utillinuxMinimal
|
||||||
, writeTextFile
|
, writeTextFile
|
||||||
}:
|
}:
|
||||||
|
|
||||||
@ -281,7 +281,7 @@ let
|
|||||||
in
|
in
|
||||||
|
|
||||||
assert stdenv.lib.versionAtLeast version "4.14" -> libelf != null;
|
assert stdenv.lib.versionAtLeast version "4.14" -> libelf != null;
|
||||||
assert stdenv.lib.versionAtLeast version "4.15" -> utillinux != null;
|
assert stdenv.lib.versionAtLeast version "4.15" -> utillinuxMinimal != null;
|
||||||
stdenv.mkDerivation ((drvAttrs config stdenv.hostPlatform.platform kernelPatches configfile) // {
|
stdenv.mkDerivation ((drvAttrs config stdenv.hostPlatform.platform kernelPatches configfile) // {
|
||||||
pname = "linux";
|
pname = "linux";
|
||||||
inherit version;
|
inherit version;
|
||||||
@ -292,7 +292,7 @@ stdenv.mkDerivation ((drvAttrs config stdenv.hostPlatform.platform kernelPatches
|
|||||||
nativeBuildInputs = [ perl bc nettools openssl rsync gmp libmpc mpfr ]
|
nativeBuildInputs = [ perl bc nettools openssl rsync gmp libmpc mpfr ]
|
||||||
++ optional (stdenv.hostPlatform.platform.kernelTarget == "uImage") buildPackages.ubootTools
|
++ optional (stdenv.hostPlatform.platform.kernelTarget == "uImage") buildPackages.ubootTools
|
||||||
++ optional (stdenv.lib.versionAtLeast version "4.14") libelf
|
++ optional (stdenv.lib.versionAtLeast version "4.14") libelf
|
||||||
++ optional (stdenv.lib.versionAtLeast version "4.15") utillinux
|
++ optional (stdenv.lib.versionAtLeast version "4.15") utillinuxMinimal
|
||||||
++ optionals (stdenv.lib.versionAtLeast version "4.16") [ bison flex ]
|
++ optionals (stdenv.lib.versionAtLeast version "4.16") [ bison flex ]
|
||||||
++ optional (stdenv.lib.versionAtLeast version "5.2") cpio
|
++ optional (stdenv.lib.versionAtLeast version "5.2") cpio
|
||||||
;
|
;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user