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, lib,
fetchFromGitLab, fetchFromGitLab,
}: }:
@@ -7,6 +8,8 @@ let
sources = lib.importJSON ./sources.json; sources = lib.importJSON ./sources.json;
reformDebianPackages = fetchFromGitLab sources.reformDebianPackages; reformDebianPackages = fetchFromGitLab sources.reformDebianPackages;
in in
map (lib.removePrefix "${reformDebianPackages}/") ( runCommand "mnt-reform-kernel-patches" { } ''
lib.filesystem.listFilesRecursive "${reformDebianPackages}/linux/patches${lib.versions.majorMinor sources.modDirVersion}" 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 #!/usr/bin/env sh
nix eval .#mnt-reform-kernel-patches > kernelPatches.nix nix build .#mnt-reform-kernel-patches
nix fmt kernelPatches.nix cp result kernelPatches.nix