This repository has been archived on 2024-11-13. You can view files and clone it, but cannot push or open issues or pull requests.
fediversity.eu/default.nix

45 lines
815 B
Nix
Raw Normal View History

2024-11-13 15:24:40 +01:00
{ sources ? import ./npins
, system ? builtins.currentSystem
, pkgs ? import sources.nixpkgs {
inherit system;
config = { };
overlays = [ ];
}
, lib ? import "${sources.nixpkgs}/lib"
}:
2024-11-13 15:24:41 +01:00
let
2024-11-13 15:24:41 +01:00
lib' = final: prev:
let
new = import ./lib.nix { lib = final; };
in
new // { types = prev.recursiveUpdate prev.types new.types; };
2024-11-13 15:24:41 +01:00
lib'' = lib.extend lib';
in
2024-11-13 15:24:40 +01:00
{
2024-11-13 15:24:41 +01:00
lib = import ./lib.nix { inherit lib; };
2024-11-13 15:24:40 +01:00
build =
let
2024-11-13 15:24:41 +01:00
result = lib''.evalModules {
2024-11-13 15:24:40 +01:00
modules = [
./structure
./content
2024-11-13 15:24:41 +01:00
./presentation
2024-11-13 15:24:41 +01:00
{
_module.args = {
inherit pkgs;
};
}
2024-11-13 15:24:40 +01:00
];
};
in
result.config.build;
2024-11-13 15:24:40 +01:00
2024-11-13 15:24:40 +01:00
shell = pkgs.mkShellNoCC {
packages = with pkgs; [
cmark
npins
];
};
}