Merge pull request #2017 from leifhelm/fix-search

mnt/reform: convert update patches to derivation
This commit is contained in:
Doron Behar authored and GitHub committed 2026-10-04 15:28:51 +00:00
commit fd402c5c9f
2 files changed
+8 -5

No files matched your search

+6 -3
View File
@@ -1,4 +1,5 @@
{
runCommand,
lib,
fetchFromGitLab,
}:
@@ -7,6 +8,8 @@ let
sources = lib.importJSON ./sources.json;
reformDebianPackages = fetchFromGitLab sources.reformDebianPackages;
in
map (lib.removePrefix "${reformDebianPackages}/") (
lib.filesystem.listFilesRecursive "${reformDebianPackages}/linux/patches${lib.versions.majorMinor sources.modDirVersion}"
)
runCommand "mnt-reform-kernel-patches" { } ''
shopt -s globstar
cd ${reformDebianPackages}
echo -e "[\n$(printf ' "%s"\n' linux/patches${lib.versions.majorMinor sources.modDirVersion}/**/*.patch)\n]"> $out
''
+2 -2
View File
@@ -1,4 +1,4 @@
#!/usr/bin/env sh
nix eval .#mnt-reform-kernel-patches > kernelPatches.nix
nix fmt kernelPatches.nix
nix build .#mnt-reform-kernel-patches
cp result kernelPatches.nix