mnt/reform: convert update patches to derivation

This commit is contained in:
Jakob Leifhelm committed 2026-09-02 18:08:05 +02:00
1 parent 44d95795ee
commit 5ad14a9e0c
2 files changed
+8 -4

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 "[ $(printf '"%s"' linux/patches${lib.versions.majorMinor sources.modDirVersion}/**/*.patch) ]" > $out
''
+2 -1
View File
@@ -1,4 +1,5 @@
#!/usr/bin/env sh #!/usr/bin/env sh
nix eval .#mnt-reform-kernel-patches > kernelPatches.nix nix build .#mnt-reform-kernel-patches
cp result kernelPatches.nix
nix fmt kernelPatches.nix nix fmt kernelPatches.nix