infrastructure/sources.nix
2025-02-06 13:08:04 +01:00

38 lines
801 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
rawSources = import ./npins;
bootstrapNixpkgs = import rawSources.nixos-unstable { };
patch = (import ./lib/nix-patches { patchFile = ./patches; }).base {
pkgs = bootstrapNixpkgs;
};
patchedSources = builtins.mapAttrs (
k: src:
patch.applyPatches {
inherit src;
name = k;
}
) rawSources;
libOverlay = final: _: {
extra = import ./lib/nix-lib { lib = final; };
};
in
patchedSources
// {
inherit
bootstrapNixpkgs
libOverlay
rawSources
;
fullLib = bootstrapNixpkgs.lib.extend libOverlay;
}