linux-libre: fix build and unmark as broken

This commit is contained in:
IvarWithoutBones 2021-10-05 21:59:30 +02:00 committed by Ivar Scholten
parent 807370df94
commit 8840f68cd4

View file

@ -14,9 +14,14 @@ let
minor = lib.versions.minor linux.modDirVersion; minor = lib.versions.minor linux.modDirVersion;
patch = lib.versions.patch linux.modDirVersion; patch = lib.versions.patch linux.modDirVersion;
# See http://linux-libre.fsfla.org/pub/linux-libre/releases
versionPrefix = if linux.kernelOlder "5.14" then
"gnu1"
else
"gnu";
in linux.override { in linux.override {
argsOverride = { argsOverride = {
modDirVersion = "${linux.modDirVersion}-gnu"; modDirVersion = "${linux.modDirVersion}-${versionPrefix}";
isLibre = true; isLibre = true;
src = stdenv.mkDerivation { src = stdenv.mkDerivation {
@ -35,10 +40,8 @@ in linux.override {
''; '';
}; };
extraMeta.broken = true;
passthru.updateScript = ./update-libre.sh; passthru.updateScript = ./update-libre.sh;
maintainers = [ lib.maintainers.qyliss ]; maintainers = with lib.maintainers; [ qyliss ivar ];
}; };
} }