mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2026-12-04 15:03:29 +01:00
enhancement: remove impure <nixpkgs>
Co-Authored-By: Jamie Magee <jamie.magee@gmail.com> Co-Authored-By: Doron Behar <doron.behar@gmail.com>
This commit is contained in:
1 parent
f1b7ff92cd
commit
d84f0810be
4 files changed
+35
-17
No files matched your search
@@ -1,9 +1,11 @@
|
||||
{
|
||||
lib,
|
||||
fetchFromGitLab,
|
||||
}:
|
||||
|
||||
let
|
||||
nixpkgs = import <nixpkgs> { };
|
||||
pkgs = nixpkgs.pkgs;
|
||||
lib = nixpkgs.lib;
|
||||
sources = lib.importJSON ./sources.json;
|
||||
reformDebianPackages = pkgs.fetchFromGitLab sources.reformDebianPackages;
|
||||
reformDebianPackages = fetchFromGitLab sources.reformDebianPackages;
|
||||
in
|
||||
map (lib.removePrefix "${reformDebianPackages}/") (
|
||||
lib.filesystem.listFilesRecursive "${reformDebianPackages}/linux/patches${lib.versions.majorMinor sources.modDirVersion}"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
nix eval --file updateKernelPatches.nix > kernelPatches.nix
|
||||
nix eval .#mnt-reform-kernel-patches > kernelPatches.nix
|
||||
nix fmt kernelPatches.nix
|
||||
Reference in new issue
Block a user