forked from DGNum/infrastructure
33 lines
755 B
Nix
33 lines
755 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;
|
|
|
|
pkgs = import unpatchedSources.nixos-unstable { };
|
|
|
|
patch = (import ./lib/nix-patches { patchFile = ./patches; }).base {
|
|
inherit pkgs;
|
|
};
|
|
|
|
sources = builtins.mapAttrs (
|
|
k: src:
|
|
patch.applyPatches {
|
|
inherit src;
|
|
name = k;
|
|
}
|
|
) unpatchedSources;
|
|
|
|
overlays.lib = _: lib: { extra = import ./lib/nix-lib { inherit lib; }; };
|
|
in
|
|
|
|
{
|
|
inherit overlays sources unpatchedSources;
|
|
|
|
pkgs = pkgs // {
|
|
lib = pkgs.lib.extend overlays.lib;
|
|
};
|
|
}
|