mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2026-11-30 13:03:30 +01:00
16 lines
383 B
Nix
16 lines
383 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 -e "[\n$(printf ' "%s"\n' linux/patches${lib.versions.majorMinor sources.modDirVersion}/**/*.patch)\n]"> $out
|
|
''
|