38 lines
804 B
Nix
38 lines
804 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.nixpkgs { };
|
|
|
|
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;
|
|
}
|