Files
nixos-hardware/mnt/reform/updateKernelPatches.nix
T

16 lines
375 B
Nix

{
runCommand,
lib,
fetchFromGitLab,
}:
let
sources = lib.importJSON ./sources.json;
reformDebianPackages = fetchFromGitLab sources.reformDebianPackages;
in
runCommand "mnt-reform-kernel-patches" { } ''
shopt -s globstar
cd ${reformDebianPackages}
echo "[ $(printf '"%s"' linux/patches${lib.versions.majorMinor sources.modDirVersion}/**/*.patch) ]" > $out
''