44 lines
798 B
Nix
44 lines
798 B
Nix
# SPDX-FileCopyrightText: 2025 Maurice Debray <maurice@dgnum.eu>
|
|
#
|
|
# SPDX-License-Identifier: EUPL-1.2
|
|
|
|
{
|
|
sprinkles ? null,
|
|
}:
|
|
|
|
let
|
|
# Bootstrap
|
|
s = if sprinkles == null then import source.sprinkles else sprinkles;
|
|
|
|
# Source
|
|
source = import ./lon.nix;
|
|
|
|
#Input
|
|
input =
|
|
self:
|
|
let
|
|
inherit (self) source;
|
|
in
|
|
{
|
|
git-hooks = import source."git-hooks.nix";
|
|
nix-reuse = (import source."nix-reuse" { }).override {
|
|
input = _: { inherit (self.input) nixpkgs git-hooks; };
|
|
};
|
|
|
|
nixpkgs = import source."nixpkgs" {
|
|
config.allowAliases = false;
|
|
};
|
|
};
|
|
in
|
|
|
|
s.new {
|
|
inherit input source;
|
|
|
|
output = self: {
|
|
shells = {
|
|
default = self.input.nixpkgs.callPackage ./shell { sprinkle = self; };
|
|
};
|
|
|
|
src = ./.;
|
|
};
|
|
}
|