infrastructure/sources.nix
sinavir 58ea284824
Some checks failed
Check workflows / check_workflows (pull_request) Successful in 16s
Check meta / check_meta (pull_request) Successful in 17s
Check meta / check_dns (pull_request) Successful in 18s
Run pre-commit on all files / pre-commit (push) Successful in 25s
Build all the nodes / ap01 (pull_request) Successful in 32s
Build all the nodes / netcore02 (pull_request) Successful in 31s
Build all the nodes / geo01 (pull_request) Successful in 1m35s
Build all the nodes / tower01 (pull_request) Successful in 1m41s
Build all the nodes / storage01 (pull_request) Successful in 1m57s
Build all the nodes / web02 (pull_request) Successful in 1m41s
Build the shell / build-shell (pull_request) Successful in 34s
Build all the nodes / bridge01 (pull_request) Successful in 2m44s
Run pre-commit on all files / pre-commit (pull_request) Successful in 35s
Build all the nodes / hypervisor01 (pull_request) Successful in 2m53s
Build all the nodes / hypervisor02 (pull_request) Successful in 2m54s
Build all the nodes / hypervisor03 (pull_request) Successful in 3m3s
Build all the nodes / build01 (pull_request) Successful in 3m20s
Build all the nodes / geo02 (pull_request) Successful in 3m21s
Build all the nodes / web01 (pull_request) Successful in 2m51s
Build all the nodes / vault01 (pull_request) Successful in 2m59s
Build all the nodes / web03 (pull_request) Successful in 1m48s
Build all the nodes / rescue01 (pull_request) Successful in 3m14s
Build all the nodes / compute01 (pull_request) Failing after 2m50s
chore(lib): Clean instanciation
2025-01-23 09:51:45 +01:00

38 lines
811 B
Nix

# SPDX-FileCopyrightText: 2024 Ryan Lahfa <ryan.lahfa@dgnum.eu>
# SPDX-FileCopyrightText: 2024 Tom Hubrecht <tom.hubrecht@dgnum.eu>
# SPDX-FileContributor: Maurice Debray <maurice.debray@dgnum.eu>
#
# SPDX-License-Identifier: EUPL-1.2
let
unpatchedSources = import ./npins;
bootstrapNixpkgs = import unpatchedSources.nixos-unstable { };
patch = (import ./lib/nix-patches { patchFile = ./patches; }).base {
pkgs = bootstrapNixpkgs;
};
sources = builtins.mapAttrs (
k: src:
patch.applyPatches {
inherit src;
name = k;
}
) unpatchedSources;
libOverlay = final: _: {
extra = import ./lib/nix-lib { lib = final; };
};
in
sources
// {
inherit
bootstrapNixpkgs
libOverlay
unpatchedSources
;
fullLib = bootstrapNixpkgs.lib.extend libOverlay;
}