Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.5 kB · 65 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566{ stdenv, lib, fetchsvn, linux, scripts ? fetchsvn { url = "https://www.fsfla.org/svn/fsfla/software/linux-libre/releases/branches/"; rev = "19835"; hash = "sha256-5usyLmlTr5nlM+/uWPQepzhhNSLi3Hol1BfnWb9CFws="; }, ...}@args:
let majorMinor = lib.versions.majorMinor linux.modDirVersion;
major = lib.versions.major linux.modDirVersion; minor = lib.versions.minor 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";inlinux.override { argsOverride = { modDirVersion = "${linux.modDirVersion}-${versionPrefix}"; isLibre = true; pname = "linux-libre";
src = stdenv.mkDerivation { name = "${linux.name}-libre-src"; src = linux.src;
buildPhase = '' runHook preBuild
# --force flag to skip empty files after deblobbing ${scripts}/${majorMinor}/deblob-${majorMinor} --force ${major} ${minor} ${patch}
runHook postBuild '';
checkPhase = '' runHook preCheck
${scripts}/deblob-check
runHook postCheck '';
installPhase = '' runHook preInstall
cp -r . "$out"
runHook postInstall ''; };
extraPassthru.updateScript = ./update-libre.sh;
maintainers = with lib.maintainers; [ qyliss ]; };}// (args.argsOverride or { })