24 lines
641 B
Nix
24 lines
641 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
|
||
|
sources' = import ./npins;
|
||
|
|
||
|
bootstrapNixpkgs = import sources'.nixos-unstable { };
|
||
|
|
||
|
patch = (import ./lib/nix-patches { patchFile = ./patches; }).base {
|
||
|
pkgs = bootstrapNixpkgs;
|
||
|
};
|
||
|
|
||
|
sources = builtins.mapAttrs (
|
||
|
k: src:
|
||
|
patch.applyPatches {
|
||
|
inherit src;
|
||
|
name = k;
|
||
|
}
|
||
|
) sources';
|
||
|
in sources // { bootstrapNixpkgs = bootstrapNixpkgs; unpatchedSources = sources; }
|