mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2026-12-04 06:53:30 +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,13 +1,17 @@
|
||||
{
|
||||
description = "nixos-hardware";
|
||||
|
||||
inputs.nixpkgs.url = "https://channels.nixos.org/nixos-unstable/nixexprs.tar.xz";
|
||||
|
||||
outputs =
|
||||
{ self, ... }:
|
||||
{ self, nixpkgs, ... }:
|
||||
let
|
||||
# Import private inputs (for development)
|
||||
privateInputs =
|
||||
(import ./tests/flake-compat.nix {
|
||||
src = ./tests;
|
||||
src = {
|
||||
outPath = self.outPath + "/tests";
|
||||
};
|
||||
}).defaultNix;
|
||||
|
||||
systems = [
|
||||
@@ -23,17 +27,10 @@
|
||||
];
|
||||
|
||||
# Helper to iterate over systems
|
||||
eachSystem =
|
||||
f:
|
||||
privateInputs.nixos-unstable-small.lib.genAttrs systems (
|
||||
system: f privateInputs.nixos-unstable-small.legacyPackages.${system} system
|
||||
);
|
||||
eachSystem = f: nixpkgs.lib.genAttrs systems (system: f nixpkgs.legacyPackages.${system} system);
|
||||
|
||||
eachSystemFormat =
|
||||
f:
|
||||
privateInputs.nixos-unstable-small.lib.genAttrs formatSystems (
|
||||
system: f privateInputs.nixos-unstable-small.legacyPackages.${system} system
|
||||
);
|
||||
f: nixpkgs.lib.genAttrs formatSystems (system: f nixpkgs.legacyPackages.${system} system);
|
||||
in
|
||||
{
|
||||
|
||||
@@ -494,6 +491,8 @@
|
||||
run-tests = pkgs.callPackage ./tests/run-tests.nix {
|
||||
inherit self;
|
||||
};
|
||||
|
||||
mnt-reform-kernel-patches = pkgs.callPackage ./mnt/reform/updateKernelPatches.nix { };
|
||||
}
|
||||
// pkgs.lib.optionalAttrs (system == "aarch64-linux") {
|
||||
# Boot images for NXP i.MX boards (aarch64-linux only)
|
||||
|
||||
Reference in new issue
Block a user